if(++Time_Count = 50) return;中的return怎么理解?//#include #define uint unsigned int#define uchar unsigned charsbit RED_A = P0^0;sbit YELLOW_A = P0^1;sbit GREEN_A = P0^2;sbit RED_B = P0^3;sbit YELLOW_B = P0^4;sbit GREEN_B = P0^5;uchar Time_Coun

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/11 05:07:18
if(++Time_Count = 50) return;中的return怎么理解?//#include #define uint unsigned int#define uchar unsigned charsbit RED_A = P0^0;sbit YELLOW_A = P0^1;sbit GREEN_A = P0^2;sbit RED_B = P0^3;sbit YELLOW_B = P0^4;sbit GREEN_B = P0^5;uchar Time_Coun

if(++Time_Count = 50) return;中的return怎么理解?//#include #define uint unsigned int#define uchar unsigned charsbit RED_A = P0^0;sbit YELLOW_A = P0^1;sbit GREEN_A = P0^2;sbit RED_B = P0^3;sbit YELLOW_B = P0^4;sbit GREEN_B = P0^5;uchar Time_Coun
if(++Time_Count = 50) return;中的return怎么理解?
//
#include
#define uint unsigned int
#define uchar unsigned char
sbit RED_A = P0^0;
sbit YELLOW_A = P0^1;
sbit GREEN_A = P0^2;
sbit RED_B = P0^3;
sbit YELLOW_B = P0^4;
sbit GREEN_B = P0^5;
uchar Time_Count = 0,Flash_Count = 0,Operation_Type = 1;
void T0_INT() interrupt 1
{
\x05TMOD = 0x01;
\x05IE = 0x82;
\x05TR0 = 1;
\x05TH0 = (60000-50000)/256;
\x05TL0 = (60000-50000)%256;
\x05
\x05switch(Operation_Type)
\x05{
\x05 \x05case 1:
\x05\x05\x05RED_A=0;YELLOW_A=0;GREEN_A=1;
\x05\x05\x05RED_B=1;YELLOW_B=0;GREEN_B=0;
\x05\x05\x05if(++Time_Count = 50) return;
\x05\x05\x05Time_Count=0;
\x05\x05\x05Operation_Type = 2;
\x05\x05\x05break;
\x05\x05case 2:
\x05\x05\x05if(++Time_Count = 8) return;
\x05\x05\x05Time_Count=0;
\x05\x05\x05YELLOW_A=!YELLOW_A;
\x05\x05\x05GREEN_A=0;
\x05\x05\x05if(++Flash_Count = 10) return;//黄灯闪烁5次
\x05\x05\x05Flash_Count=0;
\x05\x05\x05Operation_Type = 3;
\x05\x05\x05break;
\x05\x05case 3:
\x05\x05\x05RED_A=1;YELLOW_A=0;GREEN_A=0;
\x05\x05\x05RED_B=0;YELLOW_B=0;GREEN_B=1;
\x05\x05\x05if(++Time_Count = 20) return;
\x05\x05\x05Time_Count=0;
\x05\x05\x05Operation_Type = 4;
\x05\x05\x05break;\x05
\x05\x05case 4:
\x05\x05\x05if(++Time_Count = 8) return;
\x05\x05\x05Time_Count=0;
\x05\x05\x05YELLOW_B=!YELLOW_B;
\x05\x05\x05GREEN_B=0;
\x05\x05\x05if(++Flash_Count =10)
\x05\x05\x05\x05return;
\x05\x05\x05Flash_Count=0;
\x05\x05\x05Operation_Type = 1;
\x05\x05\x05break;\x05
\x05}
}
void main()
{
\x05TMOD = 0x01;
\x05IE = 0x82;
\x05TR0 = 1;
\x05TH0 = (60000-50000)/256;
\x05TL0 = (60000-50000)%256;
\x05RED_A=0;YELLOW_A=0;GREEN_A=1;
\x05RED_B=1;YELLOW_B=0;GREEN_B=0;
\x05while(1);
}

if(++Time_Count = 50) return;中的return怎么理解?//#include #define uint unsigned int#define uchar unsigned charsbit RED_A = P0^0;sbit YELLOW_A = P0^1;sbit GREEN_A = P0^2;sbit RED_B = P0^3;sbit YELLOW_B = P0^4;sbit GREEN_B = P0^5;uchar Time_Coun
if(++Time_Count != 50) return;
ruturn指的是返回以下这个循环体:
void T0_INT() interrupt 1
{
\x05TMOD = 0x01;
\x05IE = 0x82;
\x05TR0 = 1;
\x05TH0 = (60000-50000)/256;
\x05TL0 = (60000-50000)%256;
\x05
\x05switch(Operation_Type)
\x05{