iterar en map
//traditional way (long)
for(map<string,int>::iterator it=m.begin(); it!=m.end(); ++it)
if(it->second)cout<<it->first<<" ";
//easy way(short) just works with c++11 or later versions
for(auto &x:m)
if(x.second)cout<<x.first<<" ";
//condition is just an example of use
Also in C:
- typedef in c
- parcourir char c
- confirm sweet alert
- animation with c
- how to check where the last char is in a string c
- Segment tree
- online python to c converter
- pointer parameter where to put the asterix in C?
- sleep in c programming
- bubble sort time complexity
- multiplication in c
- counter program in c language
- potencia recursiva
- generate all permutations of string
- declaration in c
- code in c skipping over scanf
- read a binary file c
- how do pointers work in c programmwiz
- what is x:Name Xamarin forms
- string compare in c
- latex noindent
- c print long
- array addition and multiplication in c
- c interview questions for experienced