摘要:
1 struct point{double x, y;}p[105]; 2 3 double xmult(point p1,point p2,point p0) 4 { 5 return (p1.x-p0.x)*(p2.y-p0.y)-(p2.x-p0.x)*(p1.y-p0.y); 6 } 7 8 double area_triangle(point p1,point p2,point p3) 9 {10 return fabs(xmult(p1,p2,p3))/2;11 }12 13 for(int i = 0; i < m; i++)14 {15 ... 阅读全文