Samael88
Evil always finds a way
- Reaction score
- 181
Okay, so I am trying to use pointers and vectors together and I am a bit confused.
My question is, if I have the code provided below, how do I clean it up afterwards?
My question is, if I have the code provided below, how do I clean it up afterwards?
Code:
vector <int*> myVector;
int* a = new int;
*a = 8;
myVector.push_back(a);