当前位置:网站首页>goto Statement
goto Statement
2022-07-05 17:06:00 【Qingshan 061010】
It is also called unconditional transfer statement
Format : Insert flag:
Then knock it out goto flag; It can be transferred to the mark .
however , It is not recommended in any code ,goto Statements tend to complicate the code , And make the code difficult to understand and modify .
Example :
#include <iostream>
using namespace std;
int main()
{
cout << "1" << endl;
goto flag;
cout << "2" << endl;
cout << "3" << endl;
flag:
cout << "4" << endl;
cout << "5" << endl;
system("pause");
return 0;
}边栏推荐
- [first lecture on robot coordinate system]
- Twig数组合并的写法
- The first EMQ in China joined Amazon cloud technology's "startup acceleration - global partner network program"
- American chips are no longer proud, and Chinese chips have successfully won the first place in emerging fields
- 【729. 我的日程安排錶 I】
- Games101 notes (I)
- 编译libssh2报错找不到openssl
- Embedded UC (UNIX System Advanced Programming) -1
- Using C language to realize palindrome number
- 国产芯片产业链两条路齐头并进,ASML真慌了而大举加大合作力度
猜你喜欢
![[brush questions] effective Sudoku](/img/5b/3064170bebd1ccbee68d6a85d23830.png)
[brush questions] effective Sudoku

Learnopongl notes (I)

Games101 notes (I)

ECU简介

Error in composer installation: no composer lock file present.

拷贝方式之DMA

Etcd build a highly available etcd cluster

精准防疫有“利器”| 芯讯通助力数字哨兵护航复市

The two ways of domestic chip industry chain go hand in hand. ASML really panicked and increased cooperation on a large scale

If you can't afford a real cat, you can use code to suck cats -unity particles to draw cats
随机推荐
Scratch colorful candied haws Electronic Society graphical programming scratch grade examination level 3 true questions and answers analysis June 2022
兰空图床苹果快捷指令
How to install MySQL
外盘期货平台如何辨别正规安全?
【testlink】TestLink1.9.18常见问题解决方法
Deep learning plus
精准防疫有“利器”| 芯讯通助力数字哨兵护航复市
WR | 西湖大学鞠峰组揭示微塑料污染对人工湿地菌群与脱氮功能的影响
Solve cmakelist find_ Package cannot find Qt5, ECM cannot be found
飞桨EasyDL实操范例:工业零件划痕自动识别
Using C language to realize palindrome number
EasyX second lesson
齐宣王典故
Precision epidemic prevention has a "sharp weapon" | smart core helps digital sentinels escort the resumption of the city
Machine learning compilation lesson 2: tensor program abstraction
腾讯音乐上线新产品“曲易买”,提供音乐商用版权授权
【Web攻防】WAF检测技术图谱
What is ROM
调查显示传统数据安全工具面对勒索软件攻击的失败率高达 60%
Bs-xx-042 implementation of personnel management system based on SSM