Java开发网 |
注册 |
登录 |
帮助 |
搜索 |
排行榜 |
发帖统计
|
您没有登录 |
» Java开发网 » Java SE 综合讨论区
» 编程/算法/API
打印话题 寄给朋友 订阅主题 |
作者 | Re:这样写FOR循环的举手!! [Re:jameszhang] |
Jove
CJSDN高级会员 发贴: 1228 积分: 194 |
于 2004-11-11 17:17
倒,为什么不用while(flag)呢, 真够BT |
作者 | Re:这样写FOR循环的举手!! [Re:jameszhang] |
JiafanZhou
版主 发贴: 736 积分: 61 |
于 2004-11-11 18:44
For loop is always better than while loop. |
作者 | Re:这样写FOR循环的举手!! [Re:HenryShanley] |
烂泥
发贴: 538 积分: 72 |
于 2004-11-11 20:31
HenryShanley wrote: 请指教哦 |
作者 | Re:这样写FOR循环的举手!! [Re:why] |
edgeloner
发贴: 69 积分: 10 |
于 2004-11-12 13:04
我iterator一贯喜欢用for,while在实际中我几乎没有怎么用到,能用for我一般不去用while。for感觉要干净些 |
作者 | Re:这样写FOR循环的举手!! [Re:jameszhang] |
qingbo777
轻薄 发贴: 106 积分: 0 |
于 2004-11-13 00:52
我比较喜欢用FOR,几乎从来不用while. 总想让自己变的帅一点, 却发现离这个目标越来越远. |
作者 | Re:这样写FOR循环的举手!! [Re:jameszhang] |
raulmadrid
发贴: 0 积分: 0 |
于 2004-11-13 12:06
for( ; ; ) { } 不就可以了么
raulmadrid edited on 2004-11-13 12:29
|
作者 | Re:这样写FOR循环的举手!! [Re:raulmadrid] |
qingbo777
轻薄 发贴: 106 积分: 0 |
于 2004-11-13 17:30
raulmadrid wrote: 个人认为,用这种方法要跳出的话必须用break,不如人家的方法有节奏感. 总想让自己变的帅一点, 却发现离这个目标越来越远. |
作者 | Re:这样写FOR循环的举手!! [Re:jameszhang] |
zangweiren
发贴: 1 积分: 0 |
于 2004-11-13 21:27
我觉得只要不影响效率,用哪种方法就是大家的习惯问题了 |
作者 | Re:关于FOR、WHILE循环的讨论! [Re:jameszhang] |
wuyongjin
发贴: 44 积分: 0 |
于 2004-11-15 13:53
哈哈,大家 的解释都不错啊 还是看实际啊 问题时候在说啊吧! |
作者 | Re:关于FOR、WHILE循环的讨论! [Re:jameszhang] |
myster
发贴: 5 积分: 0 |
于 2004-11-19 16:46
我个人对for循环有种亲切感。 |
作者 | Re:关于FOR、WHILE循环的讨论! [Re:jameszhang] |
loverzhongping
发贴: 6 积分: 0 |
于 2004-11-22 16:08
I like use for ,and I never use while! |
作者 | Re:关于FOR、WHILE循环的讨论! [Re:jameszhang] |
cicy02
发贴: 2 积分: 0 |
于 2005-02-18 15:45
用C和C++时,比较喜欢用for; 现在偏好while,尤其是do...while; |
已读帖子 新的帖子 被删除的帖子 |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |