complex arithmetic

4 Comments

C++ class program to perform complex arithmetic using operator overloading

Write a program to perform complex arithmetic using operator overloading #include<iostream.h> #include<stdio.h> #include<conio.h> #include<process.h> class complex { int real; float image; public: void getdata() { cout<<"\n enter the real part of the complex"; cin>>real; cout<<"\n enter the imaginary part of the complex"; cin>>image; } void operator + (complex); void operator – (complex); };   void […]