📄 p18 array.ox
字号:
#include <oxstd.h>
main()
{
decl as = {"ax", 6, "cx"};
println("the array looks like this: ", as);
print("a single index of an array is a STRING: ", as[0],
"\na multiple index of an array is an array of STRINGS:", as[0:1],
"to keep a single index as an array, use the array function :", array(as[0]) );
}
//The array cast can be useful when an array indexing must remain an array.
//For example, a single index on an array of strings returns a string,
//whereas a multiple index returns an array of strings.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -