home *** CD-ROM | disk | FTP | other *** search
- (*$c+*)
- PROGRAM Something(input,output);
-
- {Original version of this program submitted
- by Sten Ljungkvist of SAAB-SCANIA, Sweden.
- This is a demonstration of European ASCII
- letters in Pascal identifiers. To type these
- letters, use a "copy con yourfile", and hold
- down the "alt" key while typing the three-digit
- ASCII value of the letter on the numeric keypad.
- When you release the "alt" key, the letter will
- appear on your screen. }
-
- CONST
- lägsta = 0; {ä = alt 132}
- första = 0; {ö = alt 148}
- högsta = 9999;
- TYPE
- Ångström = 2000 .. 10000; {Å = alt 143; ö = alt 148}
- intword = lägsta .. högsta;
- VAR
- üçêñ : Ångström; {These are some sample letters:
- ü = alt 129; ç = alt 135;
- ê = alt 136; ñ = alt 164}
- index : intword;
- BEGIN
- {Note that specifying output in a WRITE is optional:}
- writeln(output,'Something or another!'); writeln;
- FOR index := högsta-10 TO högsta DO
- BEGIN
- üçêñ := index;
- writeln(' This is the value of üçêñ[',
- (högsta-index) : 2, ']: ', üçêñ : 5)
- END
- END.
-