什么"对于(;;)QUOT;意思? [英] What does "for(;;)" mean?
本文介绍了什么"对于(;;)QUOT;意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在C / C ++,请问以下是什么意思?
In C/C++, what does the following mean?
for(;;){
...
}
可惜我不能谷歌认为,并得到有意义的结果。
Unfortunately I can't Google that and get meaningful results.
推荐答案
这是一个无限循环,相当于,而(真)
。当没有提供终止条件,该条件默认为真正
。
It's an infinite loop, equivalent to while(true)
. When no termination condition is provided, the condition defaults to true
.
这篇关于什么"对于(;;)QUOT;意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文