随笔:9 文章:0 评论:0 引用:0
C++博客 首页 发新随笔
发新文章 联系 聚合管理
re: 复数类(Comlex Class) Pterosaur 2009-05-29 21:09
friend iostream operator<<(iostream &os,Complex &other);
friend iostream operator>>(iostream &is,Complex &other);

很明显返回丢失了 &
成了另外一个函数的友元声明了

改成这样:
friend iostream& operator<<(iostream &os,Complex &other);
friend iostream& operator>>(iostream &is,Complex &other);


CALENDER
<2024年3月>
252627282912
3456789
10111213141516
17181920212223
24252627282930
31123456

常用链接

留言簿

随笔档案

搜索

  •  

最新评论

阅读排行榜

评论排行榜


Powered By: 博客园
模板提供沪江博客