Windows64: примеры

This commit is contained in:
AntKrotov committed 2019-05-28 17:25:25 +03:00
1 parent 7c3b86c969
commit 26a09a8638
2 files changed
+36

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
MODULE HW;
IMPORT Console, In, Out;
BEGIN
Console.open;
Out.String("Hello, world!");
In.Ln;
Console.exit(TRUE)
END HW.
+26
View File
@@ -0,0 +1,26 @@
MODULE HelloRus;
IMPORT Console, In, Out;
PROCEDURE main;
VAR
str: ARRAY 10 OF WCHAR;
BEGIN
str := "Привет!";
Out.StringW(str); Out.Ln;
str[2] := "е";
str[5] := "д";
Out.StringW(str)
END main;
BEGIN
Console.open;
main;
In.Ln;
Console.exit(TRUE)
END HelloRus.