【C++】const成员函数的作用
摘要:class Pig { long _lx; public: Pig(const long& _x = 9) : _lx(_lx){} void show(void) { cout < < "Pig的成员_lx: " < < _lx < < endl; } }; 编译器会对上述声明中的sh...
阅读全文
posted @ 2009-11-30 22:15
posted @ 2009-11-30 22:15
posted @ 2009-11-30 22:05
posted @ 2009-11-30 21:57
posted @ 2009-11-30 21:29
posted @ 2009-11-30 20:47
posted @ 2009-11-30 20:39
posted @ 2009-11-30 20:31