I know, I know, I'm not actually going to print anything in the final program, I was just checking on the values of my variables. I like cout way better than printf myself but it's been so long since...
Type: Posts; User: black_blizzard
I know, I know, I'm not actually going to print anything in the final program, I was just checking on the values of my variables. I like cout way better than printf myself but it's been so long since...
Ok, don't mind me. I'm stupid. *sigh*. In case anyone's wondering, the problem was that I resized a_vector and then added elements at the back. In my defense I must say that it's been a looong...
I'm going crazy here, I'd really appreciate some help. I have the following piece of code:
vector<Type*> a_vector;
for (int i=0; i<n; i++) {
Type* ptr = new Type(this);...