c++11 - c++ find the highest number of occurence in a string -


i'm developping autocomplete program in c++.i have dictionnary store in class , have find number of occurence of each letter in string (wich concatenation of string[x] store in dictionnary in given x position).

i have thinked 1 of theses 2 solutions have no idea of tools use:

-store theses 'tokens' in std::vector , use function find highest number of occurence in it.

-do same std::string.

i have tried wierd stuff std::map didn't manage delete elements in because think re instanciate elements in when re-using it...


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -