Any idea how to write a program using string, dynamic array and pointer where the user inputs the text and output each word in the text and how many times it is repeated beside it.
Example:
cout<< " Enter the text";
cin>> Hello this is a test 1. Hello this is a test 2.;
If you have a reference manual of some sort you should look into using a map which is an associative container. It can hold two different datatypes that you want to associate. The first datatype would be a string that represents each unique word and the second would be an int that keeps a count of how many times each word appears.