会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
代码改变世界
Cnblogs
Dashboard
Login
Home
Contact
Gallery
Subscribe
RSS
zhenjing的博客
以文会友
随笔档案-2010年11月24日
[C++再学习系列] 二元操作符重载
2010-11-24 12:48 by zhenjing, 1236 阅读,
收藏
,
摘要: 二元操作符重载的具体实现的标准方法如下:T& T::operator@=( const T& ) { // … implementation … return *this;}T operator@( const T& lhs, const T& rhs ) { T temp( lhs ) return temp @= rhs;}
阅读全文
0 Comment
About