0_0_36910953_21300.cpp:12:14: error: 'Point' was not declared in this scope
double cross(Point a,Point b,Point c) ///叉积
^
0_0_36910953_21300.cpp:12:22: error: 'Point' was not declared in this scope
double cross(Point a,Point b,Point c) ///叉积
^
0_0_36910953_21300.cpp:12:30: error: 'Point' was not declared in this scope
double cross(Point a,Point b,Point c) ///叉积
^
0_0_36910953_21300.cpp:12:37: error: expression list treated as compound expression in initializer [-fpermissive]
double cross(Point a,Point b,Point c) ///叉积
^
0_0_36910953_21300.cpp:13:1: error: expected ',' or ';' before '{' token
{
^
0_0_36910953_21300.cpp:16:1: error: 'Point' does not name a type
Point intersection(Point a,Point b,Point c,Point d)
^
0_0_36910953_21300.cpp: In function 'double CPIA(Point*, Point*, int, int)':
0_0_36910953_21300.cpp:46:47: error: 'cross' cannot be used as a function
sflag = dcmp(cross(a[i + 1], p[0],a[i]));
^
0_0_36910953_21300.cpp:50:55: error: 'cross' cannot be used as a function
eflag = dcmp(cross(a[i + 1], p[j + 1],a[i]));
^
0_0_36910953_21300.cpp:52:72: error: 'intersection' was not declared in this scope
tmp[tn++] = intersection(a[i], a[i + 1], p[j], p[j + 1]); ///求交点
^
0_0_36910953_21300.cpp: In function 'double SPIA(Point*, Point*, int, int)':
0_0_36910953_21300.cpp:69:45: error: 'cross' cannot be used as a function
num1 = dcmp(cross(t1[1], t1[2],t1[0]));
^
0_0_36910953_21300.cpp:74:49: error: 'cross' cannot be used as a function
num2 = dcmp(cross(t2[1], t2[2],t2[0]));
^
|