
简介
该用户还未填写简介
擅长的技术栈
可提供的服务
暂无可提供的服务
#include <cmath>#include <iostream.h>class CComplex{#define err 0.00000001double _x,_y;public:CComplex(double x=0,double y=0):_x(x),_y(y){}CComplex operator+(const CCompl..
腾讯云函数 使用层云函数使用python3.7版本需要自己导入第三方包 不再支持终端安装可以通过层管理来实现包的导入1.新建层2.导入本地制作好的压缩包3.本地压缩包结构(从site-packages中复制)4.给函数绑定层5.在函数中导入...

////定义一个复数类,用友元函数实现对双目运算符“ + ”的运算符重载,////使其适用于复数运算//#include<iostream>using namespace std;class Complex{private:int real;int imag;public:Complex(){real = 0;imag = 0;}Complex(int r, in...
#include <iostream>using namespace std;class Counter{public:Counter(int );Counter operator ++();Counter operator --();void display();private:int i;};Counter::Counter(int ...
#include <iostream>using namespace std;class rectangle{public:rectangle(int ,int );friend int area(rectangle T);friend int fun (rectangle T);private:int len,wid;};rectangl...
#include<iostream>using namespace std;int main(){int i,n;cin>>n;cout<<"n="<<"1";for(i=2;i<=n;){if(n%i==0){n=n/i;cout&
//声明一个Tree(树)类,有成员ages(树龄),//成员函数grow(int years)用以对ages 加上years//,showage()用以显示tree对象的ages值。//在主函数中定义Tree类对象,并调用成员函数(学生自行指定实参数 #include<iostream>using namespace std;class Tree{public...
#include<iostream>using namespace std;int main(){double a[10],sum=0,var;int i,j=0,k=0;cout<<"请输入10个学生成绩:"<<endl;for(i=0;i<10;i++){cin>
C++版#include<iostream>using namespace std;int main(){double a,h,s,v;cout<<"半径为:"<<endl;cin>>a;cout<<"高为:"<<endl;cin>>h;s=3.14159*a*a;v=s...
如有侵权请联系删除#include <iostream>#include<string>using namespace std;class student{int num;string name;int age;public:student(){num=0;name='\0';age=0;}student(int,string,i...