#3188: 怎麼會這樣


ypps920080 (Jason)


#include <stdio.h>     
#include <stdlib.h>     
#include <string.h>     
    
int main()     
{     
    char x[999999];     
    int i,temp;     
         
    while (gets(x)){     
          for (i=0,temp=1;i<strlen(x);i++){     
              if (x[i]==' ')     
                 temp++;     
          }     
          printf("%d\n",temp);     
    }     
       
        
  return 0;     

一直少一!!