Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
14
Task/Generic-swap/XPL0/generic-swap.xpl0
Normal file
14
Task/Generic-swap/XPL0/generic-swap.xpl0
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
include c:\cxpl\codes;
|
||||
|
||||
proc Exch(A, B, S);
|
||||
char A, B, S;
|
||||
int I, T;
|
||||
for I:= 0 to S-1 do
|
||||
[T:= A(I); A(I):= B(I); B(I):= T];
|
||||
|
||||
|
||||
real X, Y;
|
||||
[X:= 3.0; Y:= 4.0;
|
||||
Exch(addr X, addr Y, 8);
|
||||
RlOut(0, X); RlOut(0, Y); CrLf(0);
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue