program on C++ to return a list which contains each word and no of occurrence in a sentence
<p>I am trying to do the code but not able to do it will be grateful if someone can help me with code. i.e if the input string is "we all love mothers, mothers are best ."</p>

<p>so the output should be :</p>

<p>we      1
all     1
love    1
mothers 2
are     1
best    1</p>

<p>also special characters should be avoided.</p>
