【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 醉清风JM 阅读(802) 评论(0) 推荐(0)
浙公网安备 33010602011771号