Jan 25, 2019 at 12:56pm
In order to use a 2d vector, I have to reverse the size of it first ,but when i do this
|
vector <vector <troops*> >grid(100);
| |
neither this
|
vector <vector <troops*> >grid(100, vector<troops*> (100,nullptr));
| |
works
troops is a class
Last edited on Jan 25, 2019 at 12:57pm