title: program to find the count of each word in a para
body: <p>i am trying to find count of each word in a para but i am not able to get it done...</p>
  
  <p>so can any one tell me how to do that..</p>
  
  <p>Example Input----</p>
  
  <pre><code>Hi stack over flow is a good forum.There will be many experts in stack overflow .
  </code></pre>
  
  <p>ouput--</p>
  
  <pre><code>Hi---1
  stack-2
  overflow-2
  is---1
  a---1
  good---1
  
  ...
  ...
  </code></pre>
  
  <p>in this way i want to get output.</p>
  
  <p>This is my code...but it is not complete...after that i got struck to proceed</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  #include&lt;conio.h&gt;
  #include&lt;string.h&gt;
  
  #define NULL 0
  
  struct wordcount
  {
      char *s;
      int count;
      struct wordcount next;
  }
  
  struct checkletter
  {
      char alph;
      struct wordcount next;
  }
  
  main()
  {
      char *c;
      int hash[26],len,i,k=0,intm[100];
      struct checkletter complete[26];
      for(r=0;r&lt;25;r++)
      {
          complete[r].alph=r+97;
          complete[r].next=NULL;
      }
      printf("Enter the para :");
      gets(s);
      len=strlen(s);
      for(i=0;i&lt;len;i++)
      {       
          k=0;
          if(c[i]==' ')
          {
              for(j=i;j&gt;m;j--)
              {
                  intm[k]=c[i];
                  s1=intm;
                  k++;
              }
              m=k;
              hastlet=s1[0];
  
              for(t=0;t&lt;26;t++)
              {
                  if(complete[t].alph==hastlet)
                  {
                      if(complete[t].next==NULL)
                          complete[t].next=
                  }
  </code></pre>