#include class Complex { public: Complex(double r = 0 , double i = 0); void Disp(); private: double m_reel, m_image; }; Complex::Complex(double r , double i) { m_reel = r; m_image = i; } void Complex::Disp() { printf("%f + i%f\n",m_reel,m_image); } int main(void) { Complex C(3,2); C.Disp(); return 0; }