本着问题的精神,你的循环测试是在顶部还是底部?:
你使用哪种风格进行无限循环,为什么?
c c++ coding-style
我对for(;;)构造感到困惑.我认为这是一种无限循环的速记形式,但我不能确定.
for(;;)
这是代码:
for(;;) { //whatever statements }
c
c ×2
c++ ×1
coding-style ×1