Well, I managed to get a hold of the code I've been using on my laptop, here's a snippet (it's way too damn long):
Inside main I do:
std::vector <usrC> usuario;
This works ok, it returns 1 as expected and should, but if I do the same thing in a function:
cout << "Size: " << usuario.size() << endl;
cout << "Name: " << usuario.name << endl;
It returns 6... why? there's only one occurrence of push_back for the vector in the whole code... I've tried to use structs and classes with no avail :/...
cout << "Size 2: " << usuario.size() << endl;
return -1; // random return for this example's sake
By the way Bubba, it's actually a chat bot for controlling a game chat channel, similar to an IRC bot, but it keeps track of the users, their sanctions and such.