|
12-03-2014
|
44
|
|
The muffin man
Join Date: Sep 2011
Location: Burger Refuge
Posts: 2,262
|
That won't compile.
Also if you're looking for a basic dynamic array type, they're called std::vector's in c++.
PHP Code:
std::vector<Shape> shapes;
shapes.push_back(Circle(x, y, radius))
shapes.push_back(Square(x1, y1, x2, y2, x3, y3, x4, y4))
shapes.push_back(Triangle(x1, y1, x2, y2, x3, y3))
|
I said and gave 'rough' pseudocode for a reason... Researching libraries yourself is all part of the learning experience. Stop trying to make me look bad son.
|
|
|
|