#include<conio.h> #include<math.h> #include<graphics.h> #include<iostream> using namespace std; struct diem{ int x,y; }; diem A,B,C,D; void tomauhinhthang(diem A,diem B,diem C,diem D,int mt) { setcolor(mt); setlinestyle(0,0,0); float m1=(float) (D.x-A.x)/(D.y-A.y); float m2=(float) (C.x-B.x)/(C.y-B.y); int y=A.y+1,x1,x2; while(y<D.y){ x1=(int) (m1*(y-A.y)+A.x); x2=(int) (m2*(y-B.y)+B.x); delay(10); line(x1+1,y,x2,y); //cout<<x1<<"\t"<<y<<"\t"<<x2<<"\t"<<y<<"\n"; //for(int x=x1+1;x<x2;x++) //putpixel(x,y,mt); y++; } } void hinhthang(diem A,diem B, diem C,diem D) { setcolor(3); setlinestyle(1,0,0); line(A.x,A.y,D.x,D.y); line(D.x,D.y,C.x,C.y);...