真心求教个问题
#include<stdio.h>void main()
{
char c;
while(1)
{
if((c=getchar())!='\0')
printf("hello,world");
}
}
为什么输出时会是按一个字符,输出两个hello,world?实在想不通
2012-03-21 17:06
2012-03-21 17:12
2012-03-21 17:24

2012-03-21 17:26
2012-03-21 17:26
2012-03-21 17:28
2012-03-21 17:31
2012-03-21 17:42
2012-03-21 17:46