Inc/fi: what changed
Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.
| Old | New | Line | |
|---|---|---|---|
| 1 | 1 | # Inc | |
| 2 | 2 | ||
| 3 | - | ||
| 4 | - | ||
| 5 | - | ||
| 6 | - | ||
| 3 | + | Inc (increment) [[Procedure/fi|aliohjelma]] Pascal ohjelmoinnissa mahdollistaa helpon yhdellä (tai jollakin muulla arvolla) [[Variable|muuttujan]] lisäämisen. Esimerkiksi, käyttämällä inc (increment) aliohjelmaa, voidaan lisätä yhdellä (1) muuttujaa a:ta näin: | |
| 7 | 4 | ||
| 8 | - | ||
| 9 | - | ||
| 10 | - | ||
| 5 | + | ``` pascal | |
| 6 | + | inc( a ); | |
| 11 | 7 | ``` | |
| 12 | 8 | ||
| 13 | - | ||
| 9 | + | Jos halutaan lisätä kahdella (tai jollakin muulla arvolla): | |
| 14 | 10 | ||
| 15 | - | ||
| 11 | + | ``` pascal | |
| 12 | + | dec( a, 2 ); | |
| 13 | + | ``` | |
| 16 | 14 | ||
| 15 | + | Inc aliohjelma sisältyy [[System]] [[Unit/fi|Unittiin]]. | |
| 16 | + | ||
| 17 | 17 | ## Katso myös | |
| 18 | 18 | ||
| 19 | - | ||
| 20 | - | ||
| 21 | - | ||
| 22 | - | ||
| 19 | + | - Linkki RTL dokumenttiin: [[doc:rtl/system/inc.html|inc]] | |
| 20 | + | - [[Dec/fi|Dec]] - Vähentää muuttujan arvoa. | |
| 21 | + | - Linkki RTL dokumenttiin: [[doc:/rtl/system/succ.html|succ]] - palauttaa (ordinaali tyypin) seuraavan arvon. | |
| 22 | + | - [[For]] luuppi_muuttuja := lähtö_piste [[To]] loppu_piste [[Do]]. | |
| 23 | 23 | ||
| 24 | 24 | --- | |
| 25 | - | ||
| 25 | + | *From the Free Pascal wiki, page "Inc/fi", as it stood on 2020-02-17 after a change by Trev, 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).* |
