【发布时间】:2012-11-12 18:31:57
【问题描述】:
可能重复:
Is “for(;;)” faster than “while (TRUE)”? If not, why do people use it?
我看到了
for (;;)
{
// Some code here
}
经常。但它有什么好处,为什么不选择while(1){}?
【问题讨论】:
-
好的。我搜索了它。但是 google 和 Stackoverflow 搜索功能都没有返回足够的结果。
标签: c++ loops for-loop while-loop