#include<stdio.h>
main()
{
int n=0;
printf("输入任意个数的字符:\n");
while(getchar()!='\n')n++;
printf("%d",n);
}
#include<stdio.h>
main()
{
int n=0;
printf("输入任意个数的字符:\n");
while(getchar()!='\n')n++;
printf("%d",n);
}
转载于:https://www.cnblogs.com/lj-1568/p/4387182.html