代码是对的 可是VC++老是一个错误
代码如下:我是看不出那里错了,大家看下
#include<stdio.h>
int main()
{
int iSignal;
printf("the Red Light is 0,the Green Light is 1\n");
scanf("%d",&iSignal);
if(iSignal==1)
{
printf("the Light is green,cars can run\n");
}
else
{
printf("the Red Light no run");
}
return 0;
}