会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Loading
拾月凄辰
博客园
首页
新随笔
联系
订阅
管理
2018年7月17日
C++ 类的成员函数的连续调用与返回值问题
摘要: 一、返回值问题 1 #include <iostream> 2 3 using namespace std; 4 5 class X 6 { 7 public: 8 int a = 3; 9 X set1(int b) 10 { 11 a = b; 12 return *this; 13 } 14
阅读全文
posted @ 2018-07-17 18:15 拾月凄辰
阅读(1052)
评论(0)
推荐(0)
公告