#include<iostream.h> class complex { public: int a; int b; public: complex() { } complex(int x,int y) { this->a = x; this->b = y; } complex operator+(complex c) { complex cm; cm.a = this->a+c.a; cm.b = this->b+c.b; return cm; } complex& operator++() { this->a++; this->b++; return(*this); } }; void main() { complex c1(1,1); complex c2(2,2); complex c3; c3 = c1+c2; cout<<c3.a<<"+"<<c3.b<<"i"<<endl; c3++; cout<<c3.a<<"+"<<c3.b<<"i"<<endl; }