?? p38 exit explained.ox
字號:
#include <oxstd.h>
#include <oxprob.h>
main()
{
decl x, y=0;
for (decl i=0;i<10;++i)
{
ranseed(i+3);
x=rann(1,1);
println("x : ",x);
if (x<0)
{
y-=x;
println("y-=x : ",y);
println("Exit here. i=",i);
exit(0); //When the random number for x is negative, it computes the sum and then stops
}
else
y+=x;
println("y+=x : ",y);
}
println(y);
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -