Comparison of programming languages (associative array): Difference between revisions

Content deleted Content added
Betacommand (talk | contribs)
m fix refs
Fixed C++ iterator syntax
Line 117:
 
<source lang="cpp">
std::map<std::string, std::string>::iterator curr,end;
for( curr = phone_book.begin(), end = phone_book.end(); curr != end; curr++ )
std::cout << curr->first +<< " = " +<< curr->second << std::endl;
</source>