会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
MelodyLIU
博客园
首页
新随笔
联系
管理
订阅
2014年12月9日
C++类中const的用法
摘要: C++ 类中的const用法总结:先看一个例子:class A{public: A(int x) : num(x), b(x) {} void fun(const A& a); //const修饰函数形参 int GetNum(void) const;//const修饰不修改成员变量的函数 ...
阅读全文
posted @ 2014-12-09 16:43 MelodyLIU
阅读(1517)
评论(0)
推荐(0)
编辑
公告