for(;i<=5;i++)
{
do {
i++;
a++;
}while(i<3);
i++;
}
i=1, a=0
for(1st): i<=5(ok)
do(1st)
i++ (i is 2), a++ (a is1)
while(i<3 (ok))
do(2st)
i++ (i is 3), a++ (a is 2)
while(i<3 (bad))
i++ (i is 4)
i++ (for的) i is 5
for(2st): i<=5(ok)
do(1st)
i++ (i is 6), a++ (a is 3)
while(i<3 (bad) )
i++ (i is 7)
i++ (for 的) (i is 8)
for(3st), i<=5 (bad).....
cout << a : 3
cout << i: 8
原來朋友仔感情再天真, 亦是我永遠也會愛惜的人, 明日愛他人, 也記住學會不要緊; 原來朋友比戀人更高分, 亦讓我開始懂得不記恨, 若大家都敏感, 我更要永遠記得拒絕再因小事怪人, 爲何沒有這條校訓...Twins-朋友仔
MCSD Training