All pastes #482707 Raw Edit

Stuff

public cpp v1 · immutable
·published 2007-05-11 11:44 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& v1, const complex& v2);            complex operator* (const complex& v1, const complex& v2);            void SetX(double r) { x=r; };            void SetY(double r) { y=r; };};#endif