<分区>
本着像 Do your loops test at the top or bottom? 这样的问题的精神:
无限循环使用哪种样式,为什么?
- 同时(真){}
- 做 { } while (true);
- 对于 (;;) { }
- 标签:...转到标签;
标签 c++ c coding-style
<分区>
本着像 Do your loops test at the top or bottom? 这样的问题的精神:
无限循环使用哪种样式,为什么?
最佳答案
while(true) {}
它似乎最有效地传达了循环的意思。
关于c++ - 无限循环 - 顶部还是底部?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/224138/