会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
维尔
博客园
首页
新随笔
联系
订阅
管理
2010年1月22日
函数后加const
摘要: #include using namespace std; class A{ int data; public: A(int da=100):data(da){} void display1(){cout<<data<<endl;} void display2() const {cout<<data<<endl;} void display3() const { data+=100; ...
阅读全文
posted @ 2010-01-22 22:05 维尔
阅读(84)
评论(0)
推荐(0)
编辑
公告