complex complex::operator -(const complex& p)const{
return complex(real - p.real,imag - p.imag);
}
ostream& operator <<(ostream& out,const complex& pp){
out<<"("<<pp.real<<","<<pp.imag<<"i"<< ")";
return out;
}
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 118.160.180.101