Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
15
Task/File-input-output/XPL0/file-input-output.xpl0
Normal file
15
Task/File-input-output/XPL0/file-input-output.xpl0
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
include c:\cxpl\codes;
|
||||
int I, C;
|
||||
char IntermediateVariable;
|
||||
[IntermediateVariable:= GetHp;
|
||||
I:= 0;
|
||||
repeat C:= ChIn(1);
|
||||
IntermediateVariable(I):= C;
|
||||
I:= I+1;
|
||||
until C = $1A; \EOF
|
||||
I:= 0;
|
||||
repeat C:= IntermediateVariable(I);
|
||||
I:= I+1;
|
||||
ChOut(0, C);
|
||||
until C = $1A; \EOF
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue