Name: Anonymous 2011-04-20 14:49
in main:
vector<int> player_nr;
int x = menu(player_nr.begin());
menu function:
int menu(vector<int>::iterator x)
{
...
int a = x->size(); //<---- complains here
...
}
As far as I understood it Vectors have the arrow-operator defined in C++. Then why the fuck does the compilator complain of it?
vector<int> player_nr;
int x = menu(player_nr.begin());
menu function:
int menu(vector<int>::iterator x)
{
...
int a = x->size(); //<---- complains here
...
}
As far as I understood it Vectors have the arrow-operator defined in C++. Then why the fuck does the compilator complain of it?