abdukodir's blog

By abdukodir, 12 years ago, In Russian

I have list< pair<double,double> >::iterator p;

how can I print value of pairs???

for (p=k.begin(); p!=k.end(); ++p)
   cout << " " << *p.first;

is not working!!!

  • Vote: I like it
  • -7
  • Vote: I do not like it

»
12 years ago, # |
  Vote: I like it +7 Vote: I do not like it
cout << " " << p->first;