ФІО = Руденко Віктор Запитання:#include #include using namespace std; class Complex { double real; double image; public: Complex () {}; Complex (double r) { real = r; image = 0; } Complex(double r, double i) { real = r, image = i; } ~Complex () {} Complex operator*(Complex &); //friend ostream &operator<<(ostream &, Complex &); friend istream &operator>>(istream &, Complex &); Complex Complex::operator*(Complex &fp1)// ту ошибку выдает { double i, j; i = real * fp1.real - image * fp1.image; j = real * fp1.image + fp1.real * image; fp1.real = i; fp1.image = j; return fp1; } istream &operator>>(istream &fi, Complex &fp) { cout << "Input real part of number: "; fi >> fp.real; cout << "Input image part of number: "; fi >> fp.image; return fi; }; void main() { Complex c1, c2; cin >> c1; cin >> c2; cout << "c1 = " << c1; cout << "c2 = " << c2; cout << "c1 * c2 = " << (c1 * c2); system ("PAUSE"); return 0; } короче нужно создать клас для комплексных чисел+ функцию которая будет делать умножения 1 комплексного на другое.. я вот написал.. но оно не хочет работать.. зарание спасибо... ==================================== ANSWER ==================================== #include #include using namespace std; class Complex { double real; double image; public: Complex () {} Complex (double r) { real = r; image = 0; } Complex(double r, double i) { real = r, image = i; } void Enter(){ cout<<"Enter real = "; cin>>real; cout<<"Enter image = "; cin>>image; } void Show(){ cout<<" Real = "<