会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
oucaijun
博客园
首页
新随笔
联系
管理
订阅
2014年11月21日
c++,operator=
摘要: operator=为什么值得注意?从语法上讲,下面的程序可以编译通过,我在另一篇笔记示例里面也这样用了。class A1{public: int operator=(int a)//参数是int,语法通过但逻辑不通。 { return 8; } int oper...
阅读全文
posted @ 2014-11-21 16:38 oucaijun
阅读(5457)
评论(1)
推荐(1)
公告
下载TeamViewer