I have Stroustrup's c++ book, but there are times when it is a little
difficult to decipher. I'm trying to figure out what the "right way"
to find the maximum value in a map is. Here is basically what I would
like to do:
map<string, int> state_frequenci es;
....
int maxval = get_max_value(s tate_frequencie s);
Thanks in advance for your help.
Carl
difficult to decipher. I'm trying to figure out what the "right way"
to find the maximum value in a map is. Here is basically what I would
like to do:
map<string, int> state_frequenci es;
....
int maxval = get_max_value(s tate_frequencie s);
Thanks in advance for your help.
Carl
Comment