Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,9 @@
|
|||
inc c:\cxpl\codes; \(command words can be abbreviated to first 3 letters)
|
||||
def IntSize=4; \number of bytes in an integer (2 or 4 depending on version)
|
||||
int X, Y, A, I;
|
||||
[X:= IntIn(0); Y:= IntIn(0); \get 2 dimensions from user
|
||||
A:= Reserve(X*IntSize);
|
||||
for I:= 0 to X-1 do A(I):= Reserve(Y*IntSize);
|
||||
A(X/2, Y/2):= X+Y;
|
||||
IntOut(0, A(X/2, Y/2)); CrLf(0);
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue