📄 goto.c
字号:
#include<reg51.h>
#include<intrins.h>
void Ledon();
void Ledoff();
void Delayx10ms(Byte count);
void GotoDemo(void)
{ bit Fgerror; Byte i;
Ledon();
Delayx10ms(50);
if(Fgerror) goto error;//只能在函数内部跳转,不能跳到"good"标号
Ledoff();
Delayx10ms(50);
error:
i++;
}
void function (void)
{
good:
_nop_();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -