0_0_13805686_10673.cpp:2:4: error: stray '#' in program
2 #include <iomanip>
^
0_0_13805686_10673.cpp:3:4: error: stray '#' in program
3 #include <cmath>
^
0_0_13805686_10673.cpp:2:2: error: expected unqualified-id before numeric constant
2 #include <iomanip>
^
0_0_13805686_10673.cpp:5:2: error: expected unqualified-id before numeric constant
5 struct Point {double x,y;}; //点
^
0_0_13805686_10673.cpp:6:2: error: expected unqualified-id before numeric constant
6 struct Ldir{double dx,dy;}; //方向向量
^
0_0_13805686_10673.cpp:7:2: error: expected unqualified-id before numeric constant
7 struct Lline{Point p; Ldir dir;}; //直线
^
0_0_13805686_10673.cpp:8:2: error: expected unqualified-id before numeric constant
8 // 计算直线的一般式 Ax+By+C=0
^
0_0_13805686_10673.cpp:15:1: error: expected unqualified-id before numeric constant
15 // 求点p1关于直线ln的对称点p2
^
0_0_13805686_10673.cpp:25:1: error: expected unqualified-id before numeric constant
25 //求线段交点
^
0_0_13805686_10673.cpp:31:1: error: expected unqualified-id before numeric constant
31 TLine lineFromSegment(Point p1, Point p2)
^
0_0_13805686_10673.cpp:39:1: error: expected unqualified-id before numeric constant
39 /*求直线的交点,注意平形的情况无解,避免RE*/
^
0_0_13805686_10673.cpp:41:1: error: expected unqualified-id before numeric constant
41 Point LineInter(TLine l1, TLine l2)
^
|