//Vars to know about
Square* square;
vector<Shape> shapes;
I'm trying to add things that are shapes, or in this instance square (which inherits from shape), but whenever I call shapes.push_back(square), I get this error message:
draw.cpp:55: error: request for member ‘push_back’ in ‘shapes’, which is of non-class type ‘std::vector<Shape, std::allocator<Shape> >*’
draw.cpp:57: error: request for member ‘size’ in ‘shapes’, which is of non-class type ‘std::vector<Shape, std::allocator<Shape> >*’