Question: I have a program in c++ where I take in a input and count how many characters, numbers, and words are in that input. for

I have a program in c++ where I take in a input and count how many characters, numbers, and words are in that input. for example: AAA001aaA1AAa01aaa01bb: this would separate them into words, characters and numbers AAA|001|aa|A|1|AA|a|01|aaa|01|bb|: char times shown A 6 a 6 b 2 : 1 words times shown AAA 1 AA 2 aa 1 aaa 1 bb 1 numbers times shown 001. 1 01 2 1 1 a word counts as anything that is same util something different appears or a word with different letters that is separated bt a space

how do I store each word, number, and character and count how many times that they appear?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!