Question: write a code that can split the word and their count for example if you have this line paintings:1,8:1,sub:9,strategy::1 the output should be painting 1

write a code that can split the word and their count for example if you have this line "paintings":1,"8":1,"sub":9,"strategy:":1 the output should be painting 1 sub 9 as you can see we did not take 8 or strategy: as a word because 8 is a digit, not a word, and strategy: it has ":" inside it which does not consider words by word definition. so write function/ functions in c++ that will check if the word is a valid word and split the output into word and its integers

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!