Implement a class complex no.which has two int nos.as private variables,ine for real part and other one for complex part.define input(),display()and constructor to initialize the object .include a member function to add two complex nos.
1
Expert's answer
2017-08-19T10:25:07-0400
class complex { int re; // real part int im; // complex part public: complex(int r, int c) { re = r; im = c; }
Comments
Leave a comment