Friend function must use
code: #include<iostream> using namespace std; class complex{ private: int a,b; public: complex(){a=0,b=0;} complex(int a,int b){ this->a=a; this->b=b; } void show(){ cout<<a<<'+'<<b<<'i'<<endl; } friend void operator<<(ostream&,complex); }; void operator<<(ostream &bout,complex C){ cout<<"In overloaded operator"<<endl; cout<<C.a<<'+'<<C.b<<'i'; } int main() { complex com1(2,5),com2(3,7); com1.show(); cout<<com1; cout<<com2; return 0; } If we want to print more than one value t...