You are on page 1of 1

#include "Complex2.h" int main() { complex ob1,ob2,ob,t1,t2,t3,t4; ob1.input(); ob2.input(); t1=ob1.

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; }

You might also like