arranging maps from greatest to least based on their stored values in C++ -
ok kindof have 2 questions think they're sortof easy experienced programmer , similar. if bothers you, me 1 question & not other. have map(char, int) associates number of times character appears in string int value. problem i'm having can't figure out how print out associated values occuring least occuring. example, if type aabbbcddddd. a:2 b:3 c:1 d:5. i'm trying d:5 b:3 a:2 c:1. hope i'm explaining okay... second question. wondering how 1 go making maps same thing above series of letters or numbers. example: string: 'aabbb001c1 ddd'... "aabbb", "c", , "ddd" seperate words. "001" , "1" numbers, not equal. tried using 2 seperate map(string, int) (one words 1 numbers), series cutting off when character that's not of "type" appeared, nothings working. technique or advice nice. here's code have far. #include <iostream> #include <string> #include <sstream> #incl...