I'm getting the following error trying to define a list of "Lines":
line-clip.cpp:44: error: expected initializer before '<' token
#include <list>
using namespace std;
class Line {
public:
Point p1;
Point p2;
Line(Point P1, Point P2)
{
p1 = P1;
p2 = P2;
}
}
// Line List
list <Line> lineList;
How do you define a generic List of type "Line"?