void main()
void main()
{ Complex MyComplex;
PrintComplex(MyComplex);
GetComplex(&MyComplex);
}
void PrintComplex(Complex CX)
{
cout << "Complex Number = ";
cout << CX.real;
cout << CX.imaginary << endl;
}
Pass in the address
Previous slide
Next slide
Back to first slide
View graphic version