// complex.h: interface for the complex class. // ////////////////////////////////////////////////////////////////////// #if !defined(AFX_COMPLEX_H__E9D198EC_5525_4ADD_BD3F_76929ED68EE2__INCLUDED_) #define AFX_COMPLEX_H__E9D198EC_5525_4ADD_BD3F_76929ED68EE2__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 class complex { public: float real, image; complex(); virtual ~complex(); void inputComp(); void showComp(); float getReal(); float getImage(); complex operator + (complex num); complex operator - (complex num); complex operator * (complex num); complex operator / (complex num); void operator = (complex num); }; #endif // !defined(AFX_COMPLEX_H__E9D198EC_5525_4ADD_BD3F_76929ED68EE2__INCLUDED_)