All pastes #482694 Raw Edit

Something

public cpp v1 · immutable
·published 2007-05-11 11:33 UTC
rendered paste body
#ifndef COMPLEX_H#define COMPLEX_Hclass complex{        private:            double x,y;        public:            complex():x(0),y(0){}            complex(double a, double b):x(a),y(b){}            complex operator+= (const complex& v);            complex operator*= (const complex& v);            void SetX(double r) { x=r; };            void SetY(double r) { y=r; };}#endif