博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
The Infinite Loop belong to loop statement
阅读量:6906 次
发布时间:2019-06-27

本文共 876 字,大约阅读时间需要 2 分钟。

#include 
using namespace std; int main () { for( ; ; ) { printf("This loop will run forever.\n"); } return 0; } A loop statement allows us to execute a statement or group of statements multiple times and following is the general from of a loop statement in most of the programming languages − while loop Repeats a statement or group of statements while a given condition is true. It tests the condition before executing the loop body.for loop

Execute a sequence of statements multiple times and abbreviates the code that manages the loop variable.

do...while loop

Like a ‘while’ statement, except that it tests the condition at the end of the loop body.

nested loops

You can use one or more loop inside any another ‘while’, ‘for’ or ‘do..while’ loop.

https://www.tutorialspoint.com/cplusplus/cpp_loop_types.htm

 

 

转载于:https://www.cnblogs.com/poission/p/10861953.html

你可能感兴趣的文章
LeetCode--058--最后一个单词的长度
查看>>
Mysql JSON 新特性用法
查看>>
关于老驱动不能在windows 8下正常安装的问题
查看>>
POJ 1458 Common Subsequence DP
查看>>
#ifdef,#else,#endif,#if用法详解
查看>>
(2,1,2)卷积码译码器的JAVA实现
查看>>
1112对他人的博客评论及建议
查看>>
并发——关键字volatile
查看>>
php 数据库的增删改查
查看>>
python List 对象
查看>>
为知笔记MathJax使用教程
查看>>
@RequestParam注解的使用
查看>>
JQ_简单图片拖动
查看>>
开源|性能优化利器:数据库审核平台Themis的选型与实践
查看>>
【直视骄阳】生命的留言
查看>>
数据利用的四个层次
查看>>
配置linux下oracle sqlplus/rman等历史记录回调功能
查看>>
《跟菜鸟学Cisco UC部署实战》-第 0 章 宣传-课件(一共12章,免费)
查看>>
家居建材企业信息化管理路在何方?
查看>>
华为第1书:《华为交换机学习指南》全面预售中
查看>>