Assistant urgent I want to work program language c + + so that it enters the user what he wants of the words, then the software will know how many times to repeat the word and arranged by descending order and writes the number of times to repeat each word
declare a std::stringstream ss;
put your input in ss.
std::string s;
while (ss >> s)
{
search the map if s is in your map then add 1 to the value,
if not add the key to the map and put 1 in it.
}
cout all key values in a loop
i tried not to write the fulll code, so you can try doing your homework yourself as Gaminic said.
I suggest you don't give assistance to anyone that are here with "Program instructions" and not the codes they wrote. It is not a forum where people are spoon-fed, you should be able to do your work and then ask for help.