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);