'/fi: what changed
Revision 4 to 5. Removed lines have a minus sign; added lines have a plus sign.
| Old | New | Line | |
|---|---|---|---|
| 1 | 1 | ' | |
| 2 | 2 | ||
| 3 | 3 | [[ASCII/fi|ASCII]]:ssa merkkikoodi `39` (tai [[Hexadecimal/fi|heksadesimaalisena]] `27`) on määritelty `'` ( heittomerkille ). | |
| 4 | 4 | ||
| 5 | 5 | [[Pascal/fi|Pascal]] ohjelmointikielessä merkkijonot laitetaan heittomerkkien sisälle. | |
| 6 | 6 | ||
| 7 | 7 | ``` pascal | |
| 8 | 8 | ||
| 9 | 9 | program HelloWorld; | |
| 10 | 10 | var | |
| 11 | 11 | s:string; | |
| 12 | 12 | begin | |
| 13 | 13 | s := 'Hello World!'; | |
| 14 | 14 | writeLn(s); | |
| 15 | 15 | readln; | |
| 16 | 16 | end. | |
| 17 | 17 | ``` | |
| 18 | 18 | ||
| 19 | 19 | Jos halutaan tulostaa heittomerkin merkkijonoon niin se tuplataan. | |
| 20 | 20 | ||
| 21 | 21 | ``` pascal | |
| 22 | 22 | ||
| 23 | 23 | Writeln ('ab''cd'); // merkkijono sisältää heittomerkin | |
| 24 | 24 | ``` | |
| 25 | 25 | ||
| 26 | 26 | Yllä oleva rivi on tulostaa: | |
| 27 | 27 | ||
| 28 | - | ||
| 28 | + | ```text | |
| 29 | 29 | ab'cd | |
| 30 | 30 | ``` | |
| 31 | 31 | ||
| 32 | 32 | --- | |
| 33 | 33 | *From the Free Pascal wiki, page "'/fi", as it stood on 2022-08-06 after a change by Kai Burghardt, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).* |
