Back To C++ Structures
//program to create a structure to demonstrate complex number with members (real and imaginary) #include
#include
struct complex { int real; int imaginary; }; void main() { complex a; cout<<"\nenter real part of complex number "; cin>>a.real; cout<<"\nenter imaginary part of complex number "; cin>>a.imaginary; cout<<"complex number is "<