for循环问题 [英] for loop issue

查看:64
本文介绍了for循环问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这里是代码:

here is the code:

展开 | 选择 | Wrap | 行号

推荐答案

@momotaro


对于循环条件很糟糕:你测试的是我小于某个东西然后忘了它的全部;这就是逗号运算符的作用;可能你的意思是''&&''而不是'','


亲切的问候,


Jos
@momotaro
That for loop condition stinks: you test for i being smaller than something and then forget all about it; that''s what the comma operator does; probably you mean ''&&'' instead of '',''

kind regards,

Jos


应该更改哪一个?

thx
which one should be changed?
thx


@momotaro


我不喜欢我知道,但这个条件表达式很糟糕:

@momotaro
I don''t know but this one stinks for a conditional expression:

展开 | 选择 | Wrap | 行号


这篇关于for循环问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆