2017年10月4日

c++中赋值运算符重载为什么要用引用做返回值?

摘要: class string{ public: string(const char *str=NULL); string(const string& str); //copy构造函数的参数为什么是引用呢? 我相信大家都懂的! string& operator=(const string & str); 阅读全文

posted @ 2017-10-04 09:15 zhangkele 阅读(3520) 评论(0) 推荐(0) 编辑

导航