C#&VB.NET
johnny_qinyi
.net博大精深
展开
-
for循环的几种常见变形
int result = 0; for (int i = 0; i 10; i++) ...{ result = result + i; }这个大家都看得懂,for(int =0;i int result = 0;原创 2008-02-18 17:42:00 · 1351 阅读 · 1 评论 -
do...while循环并非无用(对比while循环)
public static int test() ...{ int result; int i = 0; while (i 10) ...{ result = 1; i++; }原创 2008-02-18 18:06:00 · 645 阅读 · 0 评论