摘要:
模版函数和模版类 下面这个模式就有点奇怪了 阅读全文
posted @ 2018-02-14 23:58
好吧,就是菜菜
阅读(245)
评论(0)
推荐(0)
|
摘要:
#include using namespace std; class MyClass { public: int x; static int n; const int y; MyClass(int val) : x(val), y(20) { } // ... 阅读全文
posted @ 2018-02-14 23:04
好吧,就是菜菜
阅读(165)
评论(0)
推荐(0)
摘要:
#include using namespace std; class Dummy { public: static int n; int x; Dummy() : x(0) { n++; } Dummy(int xx) ... 阅读全文
posted @ 2018-02-14 16:35
好吧,就是菜菜
阅读(139)
评论(0)
推荐(0)
摘要:
#include using namespace std; class Dummy { public: int x; Dummy() : x(0) { } ; Dummy(int xx) : x(xx) { } ; bool isitem(Dummy const&)... 阅读全文
posted @ 2018-02-14 16:04
好吧,就是菜菜
阅读(325)
评论(0)
推荐(0)
摘要:
#include using namespace std; class CVector { public: int x, y; CVector() : x(0), y(0) { } CVector(int a, int b) : x(a), y(b) { } ; CVect... 阅读全文
posted @ 2018-02-14 15:46
好吧,就是菜菜
阅读(158)
评论(0)
推荐(0)
|