当前位置:网站首页>Continue and break jump out of multiple loops
Continue and break jump out of multiple loops
2022-07-06 16:44:00 【HBUcs2020】
When does it end
Double inner circle continue It will also be after meeting the conditions for ending the cycle , The subsequent circulation body is still unaffected
continue The function of the statement is to skip the remaining unexecuted statements in the body of this loop , Immediately carry out the next cycle condition determination , It can be understood as only ending this cycle .
Be careful :continue Statement does not terminate the entire loop .
break: This statement causes the program to terminate the loop that contains it , And proceed to the next stage of the process ( The statement after the whole loop ), namely , Instead of jumping to the next cycle, exit the cycle . If break sentence Contained in nested loops , It just jumps out of the innermost loop .
边栏推荐
- VMware Tools和open-vm-tools的安装与使用:解决虚拟机不全屏和无法传输文件的问题
- 7-4 harmonic average
- Market trend report, technical innovation and market forecast of tabletop dishwashers in China
- SQL快速入门
- Chapter III principles of MapReduce framework
- 300th weekly match - leetcode
- Educational Codeforces Round 130 (Rated for Div. 2)A~C
- SF smart logistics Campus Technology Challenge (no T4)
- ffmpeg命令行使用
- Raspberry pie 4B installation opencv3.4.0
猜你喜欢
Codeforces Round #801 (Div. 2)A~C
【锟斤拷】的故事:谈谈汉字编码和常用字符集
Spark独立集群动态上线下线Worker节点
Story of [Kun Jintong]: talk about Chinese character coding and common character sets
Remove the border when input is focused
Soft music -js find the number of times that character appears in the string - Feng Hao's blog
Chapter 1 overview of MapReduce
两个礼拜速成软考中级软件设计师经验
300th weekly match - leetcode
提交Spark应用的若干问题记录(sparklauncher with cluster deploy mode)
随机推荐
Research Report on market supply and demand and strategy of Chinese table lamp industry
本地可视化工具连接阿里云centOS服务器的redis
Codeforces Round #799 (Div. 4)A~H
LeetCode 1552. Magnetic force between two balls
第五章 Yarn资源调度器
SQL快速入门
875. Leetcode, a banana lover
Codeforces Round #803 (Div. 2)A~C
Basic principles of video compression coding and audio compression coding
Educational Codeforces Round 130 (Rated for Div. 2)A~C
解决Intel12代酷睿CPU【小核载满,大核围观】的问题(WIN11)
QT implementation fillet window
Remove the border when input is focused
Discussion on QWidget code setting style sheet
业务系统从Oracle迁移到openGauss数据库的简单记录
How to insert mathematical formulas in CSDN blog
Codeforces Round #798 (Div. 2)A~D
Spark independent cluster dynamic online and offline worker node
Gridhome, a static site generator that novices must know
我在字节跳动「修电影」