Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 months ago.
它等同于:
bool b = true; // 1 while(b) // 2 { b = true; //Other stuff. // 3 }
for 循环的 3 个分号分隔的部分始终对应于我在 while 循环中注释的位置。
不过,不要认为这是节省几行的聪明方法。任何写出像你看到的代码的人都应该被抓起来并枪毙。
It's the same as:
The 3 semicolon-separated parts of a for loop always correspond to the places I commented in the while loop.
Don't think of it as a clever way to save a couple lines, though. Anyone who writes code like you saw should be taken out and shot.
do { b = true; // Other stuff } while(b);
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(2)
它等同于:
for 循环的 3 个分号分隔的部分始终对应于我在 while 循环中注释的位置。
不过,不要认为这是节省几行的聪明方法。任何写出像你看到的代码的人都应该被抓起来并枪毙。
It's the same as:
The 3 semicolon-separated parts of a for loop always correspond to the places I commented in the while loop.
Don't think of it as a clever way to save a couple lines, though. Anyone who writes code like you saw should be taken out and shot.