I have a pointer to a vector that contains instances of class Test:
If I do this:Code:vector<Test*>* testVec;
this crashes. What do I need to do to declare the dynamic memory so this works?Code:Test* one = new Test(); tectVec->push_back(one);
Thanks!




Reply With Quote