Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
11
Task/Copy-a-string/Zonnon/copy-a-string.zonnon
Normal file
11
Task/Copy-a-string/Zonnon/copy-a-string.zonnon
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
module Main;
|
||||
var
|
||||
s,r: string;
|
||||
c: array 60 of char;
|
||||
begin
|
||||
s := "plain string";r := s; writeln(s);
|
||||
(* copy string to array of char *)
|
||||
copy(s,c);c[0] := 'P';
|
||||
(* copy array of char to string *)
|
||||
copy(c,r);writeln(r);
|
||||
end Main.
|
||||
Loading…
Add table
Add a link
Reference in a new issue