Writing a code using function
<p>I want help in writing a program using function and string where the user inputs the text and output each word in the text and how many times it is repeated beside it.</p>

<p>Example:</p>

<pre><code>cout&lt;&lt; " Enter the text";

cin&gt;&gt; Hello this is a test 1. Hello this is a test 2.;


cout&lt;&lt; 
hello 2
this 2
is 2
a 2
test 2
1 1
2 1
</code></pre>

<hr>

<p>Thankx in advance</p>
