Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
14
Task/Empty-string/Oberon-2/empty-string.oberon
Normal file
14
Task/Empty-string/Oberon-2/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