Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions