什么是两个分号';;'做 [英] what does two semicolns ';;' do

查看:684
本文介绍了什么是两个分号';;'做的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在查看处理上传文件的一些代码,它有

循环,如:


for(;;){// for( [两个分号] {


这两个分号的功能是什么?循环直到休息?


我试图谷歌但是文本过滤器似乎删除了

分号。

I am looking at some code which process an uploaded file and it has
loops like:

for(;;){ // for([two semicolons){

what is the function of the two semicolons? loop until break?

I''ve tried to google it but the text filter seems to remove the
semicolons.

推荐答案

la***@portcommodore.com 写道:
la***@portcommodore.com wrote:

for(;;){// for([two twomicolons] {


这两个分号的功能是什么?循环直到休息?
for(;;){ // for([two semicolons){

what is the function of the two semicolons? loop until break?



两个分号是for的* part *构造。查看有关C或

C ++的任何关于for的书籍。循环。


这意味着该循环中的初始语句,中断条件和循环

语句是空语句。


这意味着for循环在启动时不会初始化任何内容,

不检查任何中断条件,并且不执行任何操作

每个循环结束。


这意味着,这是一个无限循环(直到通过调用

break()构造来破坏它循环)


-

------------------------- ---------

Iv ?? n S ?? nchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-

MSN :我_ ************************* @ hotmail.com

Jabber:iv ******** *@jabber.org; iv*********@kdetalk.net

< br>

la***@portcommodore.com 写道:

我正在查看处理上传文件的一些代码,它有

循环,如:


for(;;){// for( [两个分号] {


这两个分号的功能是什么?循环直到休息?


我试图谷歌它但文本过滤器似乎删除了

分号。
I am looking at some code which process an uploaded file and it has
loops like:

for(;;){ // for([two semicolons){

what is the function of the two semicolons? loop until break?

I''ve tried to google it but the text filter seems to remove the
semicolons.



在PHP文档中查找for循环。三个表达式,用

分号分隔。在这种情况下,表达式为null(也是有效的)。


-

============= =====

删除x来自我的电子邮件地址

Jerry Stuckle

JDS计算机培训公司
js ******* @ attglobal.net

==================

Look up a for loop in the PHP doc. Three expressions, separated by
semicolons. In this case, the expressions are null (which is also valid).

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================


6月28日,1:43 * pm,la ... @ portcommodore.com写道:
On Jun 28, 1:43*pm, la...@portcommodore.com wrote:

我正在看一些处理上传文件的代码,它有

循环,如:


for(;;){* * // for([two semicolons] {


这两个分号的功能是什么? *循环直到休息?


我试图谷歌它但文本过滤器似乎删除了

分号。
I am looking at some code which process an uploaded file and it has
loops like:

for(;;){ * * // for([two semicolons){

what is the function of the two semicolons? *loop until break?

I''ve tried to google it but the text filter seems to remove the
semicolons.



是的,这是一个无限循环

yes, that''s an infinite loop


这篇关于什么是两个分号';;'做的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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