Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started