当前位置:网站首页>4. procedure flow structure
4. procedure flow structure
2022-06-21 13:16:00 【I want to go sailing】
C/C++ Support the most basic three kinds of program running structure : Sequential structure , Selection structure , Loop structure
1. Sequential structure : The program is executed in sequence , No jump
2. Selection structure : According to whether the conditions are met , Selectively perform corresponding functions
3. Loop structure : According to whether the conditions are met , Loop executes a piece of code many times
4.1 Selection structure
4.2 Loop structure
4.3 Jump statements
4.3.1 break sentence
break Timing of use :
1. Appear in the switch In a conditional statement , The effect is to stop case And jump out of switch.
2. Appears in a loop statement , The function is to jump out of the current loop statement .
3. In nested loops , Jump out of the nearest inner loop statement .
4.3.2 continue sentence
In a loop statement , Jump out the remaining unexecuted statements in this loop , Continue with next cycle .
4.3.3 goto sentence
effect : You can jump statements unconditionally .
grammar :goto Mark .
explain : If the name of the tag exists , Execute to goto sentence , Will jump to the mark position .
边栏推荐
- Test the interface between app and wechat applet
- Two common schemes for handling interface idempotence
- Is it safe to open a securities account by downloading the app of qiniu business school? Is there a risk?
- Nanjing University static program analyses -- Introduction learning notes
- How to write test cases
- 实践 DevOps 时,可能面临的六大挑战
- 分布式事务,原理简单,写起来全是坑
- centos7 部署mysql 环境
- Analysis on the wallet system architecture of Baidu trading platform
- Pre training weekly (50): no decoding converter, neural prompt search, gradient space dimensionality reduction
猜你喜欢

Matplotlib drawing tips

Are you still using generator to generate crud code of XXX management system? Let's see what I wrote

Kubernets Rapid Practical fighting and Core Principle Analysis

Eureka's timedsupersortask class (periodic task with automatic interval adjustment)

2022年中国手机银行年度专题分析

居家辦公初體驗之新得分享| 社區征文

高效远程办公手册| 社区征文
![[deeply understand tcapulusdb technology] tmonitor system upgrade](/img/ec/bbfb7e2f19a94b69ec0a6092fd3032.png)
[deeply understand tcapulusdb technology] tmonitor system upgrade
![[in depth understanding of tcapulusdb technology] tcapulusdb business data backup](/img/74/dcb7cfefd258fa17573c96a6e78323.png)
[in depth understanding of tcapulusdb technology] tcapulusdb business data backup

【深入理解TcaplusDB技术】TcaplusDB构造数据
随机推荐
Summary of several ways to calculate distance
Apache shardingsphere 5.1.2 release | new driving API + cloud native deployment to create a high-performance data gateway
###数据库的高可用配置(mysql)
SCCM creates a client collection based on the installed app and periodically pushes application updates
《网络是怎么样连接的》读书笔记 - ADSL
【深入理解TcaplusDB技术】Tmonitor系统升级
libcef-常用概念-框架特点
如何使用搜索引擎?
如何编写测试用例
Visualization strategy of Seaborn data overall distribution
应用配置管理,基础原理分析
南京大学 静态软件分析(static program analyzes)-- introduction 学习笔记
SCCM基于已安装的 APP创建客户端集合并定期推送应用更新
[upgraded student information management system] + file operation + more details
百度交易中台之钱包系统架构浅析
这不会又是一个Go的BUG吧?
MySQL constraints (descriptions of various conditions when creating tables)
Graveyard
实践 DevOps 时,可能面临的六大挑战
PingCAP 入选 2022 Gartner 云数据库“客户之声”,获评“卓越表现者”最高分