Professional Documents
Culture Documents
add(ob2); cout<<"The Addition of Two Complex Numbers Is"<<endl; t1.output(); t2=ob1.sub(ob2); cout<<"The Substraction of Two Complex Numbers Is"<<endl; t2.output(); t3=ob1.multiply(ob2); cout<<"The Multiplication of Two Complex Numbers Is"<<endl; t3.output(); t4=ob1.divide(ob2); cout<<"The Division of Two Complex Numbers Is"<<endl; t2.output(); cout<<"The Original Complex Number Is"<<endl; ob1.output(); ob2.output(); cout<<"The Swapped Number Is"<<endl; swap(ob1,ob2); return 0; }