来纠错
#include<stdio.h>int s(b[]);
void main()
{
int a[20],y;
gets(a);
y=s(a);
printf("%d",y);
}
int s(b[])
{
int i=0;
while(b[i]!='\0')
i++;
return i;
}
目的是输入一段字符串,统计其个数.
2007-06-26 11:20
2007-06-26 12:34
2007-06-26 12:36
2007-06-26 12:40