Complex* SetInput (double size)
{
Srand ((double) time (0));
Complex* the Output=new complex [size];
For (int I=0; i{
The Output [I]=complex(rand (), the rand ());
}
Return the Output;
}
Void Print (complex* the Output, double length)
{
For (int I=0; i{
If (the Output [I] imag> 0)
Cout & lt;The else
cout}
CodePudding user response:
Cout & lt;CodePudding user response:
Into a method callThe
If (the Output [I]. Imag () & gt; 0)
Cout & lt;
Etc.
CodePudding user response:
But forgot the