随笔: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
<2025年5月>
27282930123
45678910
11121314151617
18192021222324
25262728293031
1234567

常用链接

留言簿

随笔档案

搜索

  •  

最新评论

阅读排行榜

评论排行榜


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