📄 p06 myfirst.ox
字号:
#include <oxstd.h> // include the Ox standard library header
main() // function main is the starting point
{
decl m1, m2; // declare two variables, m1 and m2
m1 = unit(3); // assign to m1 a 3 x 3 identity matrix
m1[0][0] = 2; // set top-left element to 2
m2 = <0,0,0;1,1,1>;//m2 is a 2 x 3 matrix, the first row
// consists of zeros, the second of ones
print("two matrices", m1, m2); // print the matrices
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -