来纠错
#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;
}
目的是输入一段字符串,统计其个数.
#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-6-26 11:20



