#define KOKO 4 /******************************************************************************/ class cVec{ protected: double x[KOKO]; static double laiton; public: cVec( double a=0.0,double b=0.0,double c=0.0,double d=1.0) {x[0]=a; x[1]=b; x[2]=c; x[3]=d;} double &operator[](int i); const double &operator[](int i) const; cVec &operator=(const cVec &y); double operator*(const cVec &y) const; cVec &operator*(const double r); int operator==(const cVec &y) const; }; /******************************************************************************/ class cJana{ protected: public: cVec ap,lp; cJana(cVec a, cVec b){ ap=a; lp=b; } };