请问这个循环为何跳不出来了
#include <stdio.h>#include <stdlib.h>
int main(void)
{
int i=0;
while(i<10)
{
printf("%d\n",i);
putchar(getchar());
i++;
printf("%d\n",i);
}
return 0;
}
如果没有putchar(getchar())这一句,一切正常,加上后就出不来了
新人刚开始学习,请大家多指导
2014-09-16 10:01

2014-09-16 10:23
2014-09-16 10:52
2014-09-16 15:37
2014-09-16 17:49
2014-09-16 18:13
2014-09-16 21:16
2014-09-17 08:40
2014-09-19 21:18
2014-09-19 21:46