1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
class jail{
public:
jail(polygon figure){
corners = figure // here is where the error appear..
};
polygon corners();
};
struct polygon{
int x_1, y_1, x_2, y_2, x_3, y_3, x_4, y_4;
polygon(int x_1, int y_1, int x_2, int y_2, int x_3, int y_3, int x_4, int y_4)
:x_1(x_1),y_1(y_1),x_2(x_2),y_2(y_2),x_3(x_3),y_3(y_3),x_4(x_4),y_4(y_4){}
};
|