But as I said, don't forget to delete them when you're done.Code:vector<charStats*> vec_pUnit(initSize); for(int i=0;i<initSize;++i) { vec_pUnit[i] = new charStats("Name", 1,8,9,2); }
|
Results 1 to 13 of 13
Thread: VectorsThreaded View
|
Click Here to Expand Forum to Full Width |