Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
12
Task/Substring-Top-and-tail/XPL0/substring-top-and-tail.xpl0
Normal file
12
Task/Substring-Top-and-tail/XPL0/substring-top-and-tail.xpl0
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
include c:\cxpl\stdlib;
|
||||
char S, P;
|
||||
[S:= "Smiles";
|
||||
Text(0, S+1); \first character removed
|
||||
CrLf(0);
|
||||
P:= S + StrLen(S) - 2; \point to last character in string
|
||||
P(0):= P(0) ! $80; \set the MSb on the last character
|
||||
Text(0, S); \last character removed
|
||||
CrLf(0);
|
||||
Text(0, S+1); \first and last characters removed
|
||||
CrLf(0);
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue