void main()
{{ccomplex a (1.1,2.2) ;
cout“real of complex
a=“a.realcomplex()endl;
cout“image of complex
a=“a.imagelcomplex()endl;
cout“abs of complex
a=“a.abscomplex()endl;
complex b;
cout“real of complex
b=“b.realcomplex()endl;
cout“image of complex
b=“b.imagelcomplex()endl;
cout“abs of complex
b=“b.abscomplex()endl;
}
void main()
{complex a (1.1,2.2) ;
cout\"real of complex a=\"a.realcomplex()endl;
cout\"image of complex a=\"a.imagecomplex()endl;
cout\"abs of complex a=\"a.abscomplex()endl;
complex b;
cout\"real of complex b=\"b.realcomplex()endl;
cout\"image of complex b=\"b.imagecomplex()endl;
cout\"abs of complex b=\"b.abscomplex()endl;
}