会员
周边
新闻
博问
闪存
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
spriteZ
博客园
首页
新随笔
联系
管理
订阅
2016年6月15日
C++注意事项
摘要: 1.static和const不能同时修饰类的成员函数(static int getde()const;) 分析:原因在于const会在函数中添加一个隐式参数const this*,而static是没有this指针的,此时static的用法和static就产生了冲突。 其他解释:两者的语意是矛盾的。s
阅读全文
posted @ 2016-06-15 14:09 竹雨OvO
阅读(188)
评论(0)
推荐(0)