if(++Time_Count = 50) return;中的return怎么理解?
题目
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:
x05x05x05RED_A=0;YELLOW_A=0;GREEN_A=1;
x05x05x05RED_B=1;YELLOW_B=0;GREEN_B=0;
x05x05x05if(++Time_Count = 50) return;
x05x05x05Time_Count=0;
x05x05x05Operation_Type = 2;
x05x05x05break;
x05x05case 2:
x05x05x05if(++Time_Count = 8) return;
x05x05x05Time_Count=0;
x05x05x05YELLOW_A=!YELLOW_A;
x05x05x05GREEN_A=0;
x05x05x05if(++Flash_Count = 10) return;//黄灯闪烁5次
x05x05x05Flash_Count=0;
x05x05x
答案
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{
举一反三
已知函数f(x)=x,g(x)=alnx,a∈R.若曲线y=f(x)与曲线y=g(x)相交,且在交点处有相同的切线,求a的值和该切线方程.
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
最新试题
热门考点
- 已知A(x1,y1),B(x2,y2)在反比例函数y=k/x的图像上,且x1
- I have finished a large part of the exercises,the rest of which ____for Mr.Li.
- 在从句中,中间特殊疑问词的后面主谓语顺序是什么呀
- be proud of,take a pride in有什么不同
- 甲乙两车的速度比为6:5,相遇后,甲提速1/6,乙减速20%,现在两车的速度比为()
- 稀盐酸和浓盐酸的物质量浓度分别在多少左右?稀硫酸和浓硫酸呢?
- 用We there by went bus造句
- 这两副眼镜是那对双胞胎的,让他们戴上.用英语怎么说
- 怎样才能让孩子做到专心做作业并持之以恒呢?我儿子今年读六年级,最近他总是问我,他怎样才能做到专心做作业,并持之以恒.
- 三个质数的积是这三个质数和的11倍,求这三个质数