GVA SUPPORT

Відповідь на запитання № 1308301624
Text:
	ФІО = Phillip

 Запитання:#include<iostream>
#include<math.h>
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  = "<<real<<" ; image = "<<image<<endl;
             }
      Complex Complex :: operator + (Complex b)
      {

                Complex temp;
                temp.real=real+b.real;
                temp.image=image+b.image;
                return temp;
      }
      Complex Complex :: operator - (Complex b)
      {

                Complex temp;
                temp.real=real-b.real;
                temp.image=image-b.image;
                return temp;
      }
      Complex Complex :: operator * (Complex b)
      {

                Complex temp;
                temp.real=real*b.real-image*b.image;
                temp.image=real*b.image+image*b.real;
                return temp;
      }
};
int main() 
{
     Complex c1, c2, c3;
     c1.Enter();
     c2.Enter();
     c1.Show();
     c2.Show();  
     cout<<endl;    
     cout<<endl;
     c3=c1+c2;
     c3.Show();
     c3=c1-c2;
     c3.Show();
     c3=c1*c2;
     c3.Show();          
     c3=c1/c2;
     c3.Show();     
     system ("PAUSE");
     return 0;
}
не работает!!!!!!!

====================================


 ANSWER ====================================

Щас проверю


 END of ANSWER ====================================



 ANSWER ====================================

Ты ламер. Открывай это как прект!!!!!!!!!!!!!!! и все будет работать и не забуть все извлечь в отдельную папку


 END of ANSWER ====================================

	
Ваша відповідь