In pascal, you can have something like the following:
type
TPoint = record
X, Y: Integer;
end;
TPointArray = array of TPoint;
T2DPointArray = array of TPointArray;
In C++ I tried to replicate this and failed miserably.
struct Point
{
X: Integer;
Y: Integer;
};
struct PointArray
{
//Array of Points? :S
//Don't know if to use vectors or not or even how to do this..
vector<Point>X;
}
And I want to be able to use it like so:
int main()
{
Point P;
P(X, Y);
}
How can I do this?