老贾车间
History is the version of past events that people have decided to agree upon.
页面
主页
两个博客
星期五, 八月 20, 2010
for语句的理解
2009/07/21 下午 02:24
直接截取一部分语句:
for ( n = 1; n <= 200; n = n + 1 )
triangularNumber = triangularNumber + n;
昨天受荷笠同学的启发,用“计步器”来形容for(…………)是在很合适。
由下图可形象地理解计步器的含义:
没有评论:
发表评论
较新的博文
较早的博文
主页
订阅:
博文评论 (Atom)
没有评论:
发表评论