How to write the nested for loop to find the repeated value (Duplicate value) in the <map>?
In here:
map < string, int > myMap;
String is word
int is # of frequency
How can i use the nested For loop to find the repeated # of frequency inside my map? and if its same then cout the repeated one...
....
1 2 3 4 5 6 7 8 9 10 11
map < string, int > myMap;
while (myfile >> words)
{
// Inc the count
myfile[words]++;
}
// nested loop
// compare if there is repeated # of frequency
// cout the repeated value