Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Problem programmer?

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?

Name: nambla_dot_org_rules_you 2011-04-20 14:54

Is it really that fucking difficult for you to post a complete piece of code that illustrates your problem?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List