Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created January 6, 2021 23:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/0cb09dec075dd8b9ad05b65605269901 to your computer and use it in GitHub Desktop.
Save parzibyte/0cb09dec075dd8b9ad05b65605269901 to your computer and use it in GitHub Desktop.
map<string, int>::iterator iterador;
for (iterador = mapa.begin(); iterador != mapa.end(); iterador++)
{
// "first" tiene la clave. "second" el valor
string clave = iterador->first;
int valor = iterador->second;
cout << "La clave " << clave << " tiene el valor " << valor << endl;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment