?? p19 oxtut2g.ox
字號:
#include <oxstd.h>
test1(x) // no const, because x will be changed
{
x = 1;
println("in test1: x=", x);
}
test2(const ax)
{
// Note: indexing starts at 0 in Ox
ax[0] = 2;
println("in test2: x=", ax[0]);
}
main()
{
decl x = 10;
println("x = ", x);
test1(x); // pass x
println("x = ", x);
test2(&x); // pass reference to x
println("x = ", x);
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -