求助,为什么code blocks不能启动?
代码小红 2017-09-22 04:38:03 系统是window10,开机后开code blocks运行正常。下班后待机,退出编译器再开就打不开了。
请问各位老鸟怎么回事?
另外,下面的代码运行异常。
#include<stdio.h>
void main()
{
char c;
int letter=0,num=0,space=0,other=0;
printf("input input\n");
while((c=getchar())!='\n')
{
if(c>='a'&&c<='z'||c>='A'&&c<='Z')
letter++;
else if(c==' ') space++;
else if(c>=0&&c<=9) num++;
else other++;
}
printf("char=%d space=%d num=%d other=%d\n",letter,space,other,num);
}
各位留意下最后一行。