⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ch01.1.2.1.c

📁 适合中高级学习的人参考使用的c++程序代码
💻 C
字号:
#include <iostream.h>
// #include <iostream>

/**
 **
 the while loop has executed 1 times
 the while loop has executed 2 times
 the while loop has executed 3 times
 the while loop has executed 4 times
 the while loop has executed 5 times
 **
 **/
int main()
{
	int iterations = 0;
	bool continue_loop = true;

	while ( continue_loop != false )
	{
		iterations++;

		cout << "the while loop has executed "
     		     << iterations << " times\n";

		if ( iterations == 5 )
     		     continue_loop = false;
	}

	return 0;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -