Skip to content

Commit

Permalink
Merge pull request #36 from asaiddd/master
Browse files Browse the repository at this point in the history
syntax fix in map loop
  • Loading branch information
gibsjose authored Apr 11, 2023
2 parents 7a1163b + 888db37 commit b14a18f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Data Structures and Algorithms.md
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ unsigned int size = m.size();

// Iterate
for(std::map<std::string, std::string>::iterator it = m.begin(); it != m.end(); it++) {
std::cout << *it << std::endl;
std::cout << (*it).first << " " << (*it).second << std::endl;
}

// Remove by key
Expand Down

0 comments on commit b14a18f

Please sign in to comment.