摘要: struct point { float x; float y;}; //求取三角形面积,1/2*AB*AC float Area(const point p1,point p2,point p3) { point AB, BC; AB.x = p1.x - p2.x; BC.x = p3.x - 阅读全文