mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-24 15:16:37 +08:00
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5153 42af7a65-404d-4744-a932-0658087f49c3
37 lines
708 B
ObjectPascal
37 lines
708 B
ObjectPascal
PROGRAM stringcat;
|
|
VAR
|
|
string1, string2 : string
|
|
|
|
FUNCTION inquote(instring : string) : string;
|
|
BEGIN
|
|
inquote := '"' + instring + '"'
|
|
END;
|
|
|
|
BEGIN
|
|
WRITELN(string1);
|
|
|
|
string1 := 'Now ';
|
|
WRITELN(inquote(string1));
|
|
|
|
string2 := 'is the time ';
|
|
WRITELN(inquote(string2));
|
|
|
|
string1 := string1 + string2 + 'for all good men ';
|
|
WRITELN(inquote(string1));
|
|
|
|
string2 := 'to come ' + 'to ';
|
|
WRITELN(inquote(string2));
|
|
|
|
string1 := string1 + string2;
|
|
WRITELN(inquote(string1));
|
|
|
|
string2 := 'of their party';
|
|
WRITELN(inquote(string2));
|
|
|
|
string2 := 'the aid ' + string2;
|
|
WRITELN(inquote(string2));
|
|
|
|
string1 := string1 + string2 + '.';
|
|
WRITELN(inquote(string1));
|
|
END.
|