Category : Pascal Source Code
Archive   : V_PASCAL.ZIP
Filename : STRINGS

 
Output of file : STRINGS contained in archive : V_PASCAL.ZIP
PROGRAM STRINGS; {a demo of the built-in string operations}
VAR
S1:STRING;
S2:STRING;
POSN:INTEGER;

BEGIN
CURSOR(0,0);
WRITELN('strings demo program');
REPEAT
WRITE('enter string 1: ');
READLN(S1);
WRITE('enter pos: ');
READLN(POSN);
WRITE('enter string to insert: ');
READLN(S2);
WRITELN(S1,'-',POSN:1,'-',S2);
INSERT(S1,POSN,S2); {insert S2 in S1 starting at S1[POSN] }
WRITELN('S1 =',S1,'.');
UNTIL S1 = 'stop';
END.


  3 Responses to “Category : Pascal Source Code
Archive   : V_PASCAL.ZIP
Filename : STRINGS

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/