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

Content deleted Content added
Fixed C++ iterator syntax
brush up
Line 118:
<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>