#include
#include
#include
#include
int main()
{
int start,end,width;
while(scanf("[%d:%d]",&start,&end)!=EOF)
{
width=abs(start-end)+1;
if(width<=32)
printf("%d",width);
else
printf("Too Big!");
}
return 0;
}
死循环输出一个数
是什么问题让这个不定输入的循环只输出一个数。如何才能正常运行
ctrl+z,然后回车停止输入结束循环