是什么“for(;;)”在C程序中意味着 [英] what does "for( ; ; )" mean in C program

查看:102
本文介绍了是什么“for(;;)”在C程序中意味着的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好组,

对于C语言中的(;;)是什么意思


谢谢

hello group,
what does for( ; ; ) mean in C program

Thanks

推荐答案

文章< 25 ********************************** @ j20g2000hsi 。 googlegroups.com>,

bobby< bs ***** @ gmail.comwrote:
In article <25**********************************@j20g2000hsi. googlegroups.com>,
bobby <bs*****@gmail.comwrote:

>(for;) ;)C程序中的含义
>what does for( ; ; ) mean in C program



这是一个循环。


不进行初始化。

不要测试任何条件,看看你是否应该继续。


在开始之前的循环结束后不要做任何事情

下一个循环通过。

总结:for(;;)是另一种写作方式,而(1)

这是一个无限循环(除非在某个地方被打破)

在中间。)

-

''Roberson''是我的姓;我的名字是''Walter''。

This is a loop.

Do no initializations.

Do not test any condition to see whether you should continue.

Do not do anything after the end of a loop before the beginning
of the next loop through.
In summary: for(;;) is another way of writing while (1)
which is an infinite loop (unless broken out of somewhere
in the middle.)
--
''Roberson'' is my family name; my given name is ''Walter''.


2月1日下午3:52,rober ... @ ibd.nrc-cnrc.gc.ca(Walter Roberson)

写道:
On Feb 1, 3:52 pm, rober...@ibd.nrc-cnrc.gc.ca (Walter Roberson)
wrote:

文章< 25dd47d5-b599-4ed0-8f9d-9b84936a8 ... @ j20g2000hsi.googlegroups.com> ;,


bobby< bsim ... @ gmail.comwrote:
In article <25dd47d5-b599-4ed0-8f9d-9b84936a8...@j20g2000hsi.googlegroups.com>,

bobby <bsim...@gmail.comwrote:

对(;;)的意义是什么意思在C程序
what does for( ; ; ) mean in C program



这是一个循环。


不做初始化。


不要测试任何条件,看看你是否应该继续。


在开始之前的循环结束后不要做任何事情
下一个
循环通过。


总结:for(;;)是另一种写作方式,而(1)

这是一个无限循环(除非被打破在某个地方

在中间。)

-

''Roberson''是我的姓;我的名字叫''Walter''。


This is a loop.

Do no initializations.

Do not test any condition to see whether you should continue.

Do not do anything after the end of a loop before the beginning
of the next loop through.

In summary: for(;;) is another way of writing while (1)
which is an infinite loop (unless broken out of somewhere
in the middle.)
--
''Roberson'' is my family name; my given name is ''Walter''.



非常感谢

Thank a lot


bobby写道:
bobby wrote:

你好组,

C程序中的(;;)是什么意思
hello group,
what does for( ; ; ) mean in C program



while(1)

while (1)


这篇关于是什么“for(;;)”在C程序中意味着的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆