HELP!!!
Plz fix my code someone. I'm a noob to C++ and cant figure out why im getting errors. Im using BloodShed.
Code:#include <winbgim.h> //I got this online. If u need it ask me. class Point { public: Point(int x, int y, int z): X(x), Y(y), Z(z){} ~Point(){} long int SetX(int x){X=x;} long int SetY(int y){Y=y;} long int SetZ(int z){Z=z;} long int GetX(){return X;} long int GetY(){return Y;} long int GetZ(){return Z;} long int NewX(); long int NewY(); private: int X,Y,Eye,Size,Scale,Z,OldX,OldY,MaxX,MaxY; }; long Point::NewY() { MaxY=600; OldY=Y; Eye =MaxY/6; int Size=1-Eye/Z; Y=OldY-Size*(OldY-Eye); return Y; } long Point::NewX() { MaxX=600; OldX=X; Scale=MaxX/6; Size=1-Scale/Z; X=OldX-Size*OldX; return X; } class Line { public: Line(int x,int y,int z,int a,int b,int w):X(x),Y(y),Z(z),A(a),B(b),W(w){} ~Line(){} void Draw(); Point P1(int x,int y,int z){x=X;y=Y;z=Z;} Point P2(int a,int b,int w){a=A;b=B;w=W;} private: int A; int B; int X; int Y; int Z; int W; }; void Line:raw() { P1.NewX; P1.NewY; P2.NewX; P2.NewY; moveto(P1.GetX,P1.GetY); lineto(P2.GetX,P2.GetY); }
WHATS WRONG
Code tags added by Hammer



LinkBack URL
About LinkBacks




raw() //Thats A : D BUT IT SHOWS AS SMILEY