专注于互联网--专注于架构

最新标签
网站地图
文章索引
Rss订阅

如果这里解决不了您遇到的实际问题,请到老妖社区问问老妖们如何解决
如何在类成员函数中默认引用类成员? class CAbc; class CAbc { private: int m_abc; public: void fun0(int &p=NULL)//编译错误 { printf("%d",p); } void fun1(const int &p=NULL)//编译通过 { printf("%d",p); } void fun2(int &p=this->m_abc)//编译错误 { printf("%d",p); } void fun... [阅读全文] [PDF]
1 共1条 分1页