424,948 Members | 804 Online Need help? Post your question and get tips & solutions from a community of 424,948 IT Pros & Developers. It's quick & easy.

i got some eror like "not a member" "parameter is never used" "undefined symbol" any

 P: 1 #include #include typedef int absis; typedef int ordinat; //Structure Poin & Garis struct Poin { absis x; ordinat Y; }; struct Garis { Poin A; Poin B; }; #define absis(P) (P).x #define ordinat(P) (P).y #define ax(G) (G).A.x #define ay(G) (G).A.y #define bx(G) (G).B.x #define by(G) (G).B.y Poin CreatePoin(absis x, ordinat y); void MovePoin(Poin *P,absis x,ordinat y); Garis CreateGaris(Poin *P1, Poin *P2); void CetakGaris(Garis G); int main() { Poin P1,P2; Garis G; P1=CreatePoin(3,6); P2=CreatePoin(9,4); cout<<"Cetak Titik Garis"; G=CreateGaris(&P1,&P2); CetakGaris(G); getch(); clrscr(); cout<<"Posisi Titik Garis Berpindah"; MovePoin(&G.A,3,4); MovePoin(&G.B,-3,-1); CetakGaris(G); getch(); return 0; } poin CreatePoin(absis x, ordinat y) { Poin P; absis(P)=x; ordinat(P)=y; return P; } void MovePoin(Poin *P,absis x,ordinat y) { absis(*P)+=x; ordinat(*P)|=y; } Garis CreateGaris(Poin *P1, Poin *P2) { Garis G; G.A=*P1; G.B=*P2; return G; } void CetakGaris(Garis G) { gotoxy(ax(G),ay(G));cout<<"*"; gotoxy(bx(C),by(G)); cout<<"*"; } Mar 19 '17 #1 