会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
focus5679
博客园
首页
新随笔
联系
订阅
管理
随笔分类 -
C++学习
重载操作符‘左左’
摘要:重载操作符简例#include//使out类实现一部分类似cout的功能class out{public: out& operator <<(const int value) { printf("%d", value); return *this; } out& ...
阅读全文
posted @
2018-03-21 13:14
focus5679
阅读(138)
评论(0)
推荐(0)
重载操作符‘==’ , ‘type()’ , ‘+’
摘要:重载操作符简例#include class Fraction{public: Fraction() { numerator = 0; denominator = 1; } Fraction(int a, int b) { numerator = a; deno...
阅读全文
posted @
2018-03-21 12:40
focus5679
阅读(160)
评论(0)
推荐(0)
公告