小编mge*_*ear的帖子

这种for循环有什么理由吗?

有没有理由在c中写这样的for-loop?(第一个语句留空,高度设置在外面而且......高度变量在其他地方之后也没用过)

lastheight = halfheight;
.
. // some more code changing height, includes setting 
. // lastheight
. // to something that is essentially the height of a wall
.
height = halfheight;
for ( ; lastheight < height ; lastheight++)
Run Code Online (Sandbox Code Playgroud)

它是从Wolfenstein3D源代码中引用的.

c syntax for-loop

-2
推荐指数
1
解决办法
102
查看次数

标签 统计

c ×1

for-loop ×1

syntax ×1