Using a vector of pointers correctlyI have a virtual deconstructor in my base class I'm not sure if that changes things. virtual ~Carb...
Using a vector of pointers correctlyI am trying to do delete []list; before system pause but it does not work.
Using a vector of pointers correctlyget the error push_back has not been declared. list.push_back(new Building(name, electric, gas)); ...
create X objectsI think for your case if you know how many objects you are creating at start just use an array. Vec...
Using a vector of pointers correctlyThis is how I thought I would do it but I get an error and linked to stl_vector.h saying I cant do t...
This user does not accept Private Messages