Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
14
Task/Empty-string/Oberon/empty-string.oberon
Normal file
14
Task/Empty-string/Oberon/empty-string.oberon
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
MODULE EmptyString;
|
||||
IMPORT Out;
|
||||
VAR
|
||||
str: ARRAY 64 OF CHAR;
|
||||
BEGIN
|
||||
str := "";
|
||||
Out.String("for str := ");Out.Char('"');Out.Char('"');Out.Char(';');Out.Ln;
|
||||
Out.String("checking str = ");Out.Char('"');Out.Char('"');Out.String(" Is Empty? ");Out.Bool(str = "");Out.Ln;
|
||||
Out.String("checking str[0] = 0X. Is Empty? ");Out.Bool(str[0] = 0X);Out.Ln;
|
||||
str := "Hello Rossetta";
|
||||
Out.String("for str :=");Out.Char('"');Out.String(str);Out.Char('"');Out.Char(";");Out.Ln;
|
||||
Out.String("checking str = ");Out.Char('"');Out.String(str);Out.Char('"');Out.String(" Is Empty? ");Out.Bool(str = "");Out.Ln;
|
||||
Out.String("checking str[0] = 0X. Is Empty? ");Out.Bool(str[0] = 0X);Out.Ln;
|
||||
END EmptyString.
|
||||
Loading…
Add table
Add a link
Reference in a new issue