Question: i have a c++ program where I take in a string the use map and iterators to get how many time each character, number, and
i have a c++ program where I take in a string the use map and iterators to get how many time each character, number, and word occurs. my problem is getting words. another is getting more than single digit numbers. the numbers are seen as characters and I use isdigit to separate from the other characters, but I might get a number like 2004 but would get one number 2, two zeros, and one 4. How do I just take in 2004? i also only wabt to show the top ten characters, numbers, and words with the most occurences
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
