mirror of
https://github.com/AntKrotov/oberon-07-compiler.git
synced 2026-10-05 09:45:47 +00:00
Windows64: примеры
This commit is contained in:
1 parent
7c3b86c969
commit
26a09a8638
2 files changed
+36
No files matched your search
@@ -0,0 +1,10 @@
|
||||
MODULE HW;
|
||||
|
||||
IMPORT Console, In, Out;
|
||||
|
||||
BEGIN
|
||||
Console.open;
|
||||
Out.String("Hello, world!");
|
||||
In.Ln;
|
||||
Console.exit(TRUE)
|
||||
END HW.
|
||||
@@ -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.
|
||||
Reference in new issue
Block a user