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
Post a Comment