为什么我这个for循环不起来呀。
#include <stdio.h>void main()
{
char k;
int i;
for (i=1;i<3;i++)
{
scanf("%c",&k);
switch(k)
{
case '0': printf("another\n");
case '1': printf("number\n");
}
}
}
按道理说我应该可以输入2次k的值,但是实际上我只输入了一次,程序就终止了。
2012-04-19 20:13
2012-04-19 20:59
2012-04-19 21:07
2012-04-19 21:10
2012-04-19 21:10
2012-04-19 21:40
2012-04-19 21:50
2012-04-19 21:50
2012-04-19 21:57

2012-04-19 21:58