title: C++, count repeated words in the string and display
body: <p>I have string say "walk talk, can't won't Won't woN'T talk." I want to count the reapeated words and display.
  Note: it is not case sensitive.</p>
  
  <p>I have used delimeter </p>
  
  <pre><code>strtok(string, ",.;:\"!? -_\n\t*()@#=+");
  </code></pre>
  
  <p>and saved it in </p>
  
  <pre><code>char *temp[100];
  </code></pre>
  
  <p>Now how can I check for repeatation of words? And display as below</p>
  
  <pre><code>3 won't
  2 talk
  1 can't
  1 walk
  </code></pre>
  
  <p>it should display from highest repeat to lowest. And if the repeatation is same then display alphabetic order.</p>
  
  <p>Sorry for my bad english.</p>