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

📄 for

📁 C实现的MUD,对大家基本入门网络游戏很有帮助!
💻
字号:
* The LPC for loop:

The LPC for loop is also identical to that provided by C.  Syntax is as
follows:

for (expression0; expression1; expression2) {
	statements;
	...;
}

Expression0 is evaluated once prior to the execution of the loop.  Expression1
is evaluated at the beginning of each iteration of the loop.  If expression1
evaluates to zero, then the loop terminates.  Expression2 is evaluated at
the end of each loop iteration.

A 'break' in the body of the loop will terminate the loop. A 'continue' will
continue the execution from the beginning of the loop (after evaluating
Expression2).

A typical usage of the for loop is to execute a body of code some
fixed number of times:

int i;

for (i = 0; i < 10; i++) {
	write("i == " + i + "\n");
	write("10 - i == " + (10 - i) + "\n");
}

⌨️ 快捷键说明

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