操作符重载操作流重载cout是一种ostream类型 1234operator <<(ostream &os,const complex& x){ return os<<'C'<<real(x)<<','<<imag(x)<<')';}cout<<conj(c1)//调用函数operator <<(cout,c1)