随笔分类 - mooc.程序设计与算法(三)
摘要:1 #include <iostream> 2 using namespace std; 3 4 struct A 5 { 6 int v; 7 A(int vv):v(vv) { } 8 const A* getPointer()const {return this;} 9 }; 10 11 in
阅读全文
摘要:1 #include <iostream> 2 using namespace std; 3 class Sample { 4 public: 5 int v; 6 Sample(int n = 0):v(n){}; //设置缺省值为0,没有初值时初始化v = 0 7 Sample(const Sa
阅读全文

浙公网安备 33010602011771号