Inc/fr: what changed
Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.
Title: Inc/fr
| Old | New | Line | |
|---|---|---|---|
| 1 | + | # Inc | |
| 2 | + | ||
| 3 | + | Inc(incrément) est une procédure en programmation Pascal qui vous permet d'ajouter facilement 1 (ou une autre valeur) à une [[Variable/fr|variable]]. | |
| 4 | + | ||
| 5 | + | Par exemple, en employant la procédure Inc(incrément), vous pouvez accroître de 1 la variable nommée a comme suit : | |
| 6 | + | ||
| 7 | + | ``` pascal | |
| 8 | + | inc( a ); | |
| 9 | + | ``` | |
| 10 | + | ||
| 11 | + | Si vous voulez ajouter 2 (ou plus) : | |
| 12 | + | ||
| 13 | + | ``` pascal | |
| 14 | + | inc( a, 2 ); | |
| 15 | + | ``` | |
| 16 | + | ||
| 17 | + | La procédure Inc est incluse dans l'[[Unit/fr|unité]] [[System/fr|System]]. | |
| 18 | + | ||
| 19 | + | ## Voir aussi | |
| 20 | + | ||
| 21 | + | - Lien vers la documentation de la RTL : [[doc:rtl/system/inc.html|inc]] | |
| 22 | + | - [[Dec/fr|Dec]] - Décrémente la valeur d'une variable entière. | |
| 23 | + | - Lien vers la documentation RTL : [[doc:/rtl/system/succ.html|succ]] - Retourne l'élément suivant pour un type ordinal. | |
| 24 | + | - Instruction [[For/fr|For]] control_variable := start_point [[To/fr|To]] end_point [[Do/fr|Do]]. | |
| 25 | + | ||
| 26 | + | --- | |
| 27 | + | *From the Free Pascal wiki, page "Inc/fr", 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).* |
