当前位置:网站首页>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;
}
边栏推荐
- 浏览器渲染原理以及重排与重绘
- 【剑指 Offer】62. 圆圈中最后剩下的数字
- 深潜Kotlin协程(二十一):Flow 生命周期函数
- Iphone14 with pill screen may trigger a rush for Chinese consumers
- 齐宣王典故
- Embedded-c Language-2
- Jarvis OJ shell流量分析
- Get ready for the pre-season card game MotoGP ignition champions!
- The two ways of domestic chip industry chain go hand in hand. ASML really panicked and increased cooperation on a large scale
- Machine learning compilation lesson 2: tensor program abstraction
猜你喜欢
Embedded UC (UNIX System Advanced Programming) -1
采用药丸屏的iPhone14或引发中国消费者的热烈抢购
Three traversal methods of binary tree
Learnopongl notes (I)
Cs231n notes (bottom) - applicable to 0 Foundation
Solution of vant tabbar blocking content
国内首家 EMQ 加入亚马逊云科技「初创加速-全球合作伙伴网络计划」
国产芯片产业链两条路齐头并进,ASML真慌了而大举加大合作力度
How to install MySQL
[team PK competition] the task of this week has been opened | question answering challenge to consolidate the knowledge of commodity details
随机推荐
Benji Banas membership pass holders' second quarter reward activities update list
【剑指 Offer】62. 圆圈中最后剩下的数字
WR | 西湖大学鞠峰组揭示微塑料污染对人工湿地菌群与脱氮功能的影响
Writing method of twig array merging
Browser rendering principle and rearrangement and redrawing
CMake教程Step6(添加自定义命令和生成文件)
拷贝方式之DMA
激动人心!2022开放原子全球开源峰会报名火热开启!
[Jianzhi offer] 61 Shunzi in playing cards
【729. 我的日程安排錶 I】
Three traversal methods of binary tree
How to install MySQL
Jarvis OJ shell traffic analysis
一个满分的项目文档是如何书写的|得物技术
Judge whether a string is a full letter sentence
Keras crash Guide
Copy mode DMA
2022 年 Q2 加密市场投融资报告:GameFi 成为投资关键词
Jarvis OJ Flag
ternary operator