Inc/fi: what changed
Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.
Title: Inc/fi
| Old | New | Line | |
|---|---|---|---|
| 1 | + | # Inc | |
| 2 | + | ||
| 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: | |
| 4 | + | ``` | |
| 5 | + | inc( a ); | |
| 6 | + | ``` | |
| 7 | + | ||
| 8 | + | Jos halutaan lisätä kahdella (tai jollakin muulla arvolla): | |
| 9 | + | ``` | |
| 10 | + | dec( a, 2 ); | |
| 11 | + | ``` | |
| 12 | + | ||
| 13 | + | Inc aliohjelma sisältyy [System](</index.php?title=System&action=edit&redlink=1> "System \(page does not exist\)") [[Unit/fi|Unittiin]]. | |
| 14 | + | ||
| 15 | + | ||
| 16 | + | ||
| 17 | + | ## Katso myös | |
| 18 | + | ||
| 19 | + | * Linkki RTL dokumenttiin: [inc](<http://lazarus-ccr.sourceforge.net/docs/rtl/system/inc.html> "doc:rtl/system/inc.html") | |
| 20 | + | * [[Dec/fi|Dec]] \- Vähentää muuttujan arvoa. | |
| 21 | + | * Linkki RTL dokumenttiin: [succ](<http://lazarus-ccr.sourceforge.net/docs//rtl/system/succ.html> "doc:/rtl/system/succ.html") \- palauttaa (ordinaali tyypin) seuraavan arvon. | |
| 22 | + | * [[For]] luuppi_muuttuja := lähtö_piste [[To]] loppu_piste [[Do]]. | |
| 23 | + | ||
| 24 | + | --- | |
| 25 | + | *From the Free Pascal wiki, page "Inc/fi", as the Internet Archive kept it on 2025-03-25. 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).* |
