摘要:
源程序: #include <iostream>using namespace std; class myComplex{private: double real, imag;public: myComplex(); myComplex(double r, double i); void outCo 阅读全文
posted @ 2021-11-28 11:18
bobo哥
阅读(70)
评论(0)
推荐(0)
摘要:
源程序: #include <iostream>using namespace std; class A{private: int x; const int y;public: A(int a, int b):x(a),y(b) //常变量必须在初始化列表中被初始化 { } void show() 阅读全文
posted @ 2021-11-28 10:28
bobo哥
阅读(48)
评论(0)
推荐(0)
摘要:
#include <iostream>using namespace std; class A{private: int a, b;public: A(int aa, int bb) { a = aa--; b = a*bb; } void show() { cout << "a=" << a << 阅读全文
posted @ 2021-11-28 10:17
bobo哥
阅读(40)
评论(0)
推荐(0)
摘要:
源程序: #include <iostream>using namespace std; class myComplex{private: double real, imag;public: myComplex(); myComplex(double r, double i); myComplex 阅读全文
posted @ 2021-11-28 09:39
bobo哥
阅读(49)
评论(0)
推荐(0)
摘要:
源程序: #include <iostream>#include <cmath>using namespace std; class Pixel;class Test{public: void printX(Pixel p);}; class Pixel{private: int x,y;publi 阅读全文
posted @ 2021-11-28 08:11
bobo哥
阅读(41)
评论(0)
推荐(0)

浙公网安备 33010602011771号