Dec/ru: what changed
Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.
| Old | New | Line | |
|---|---|---|---|
| 1 | 1 | # Dec | |
| 2 | 2 | ||
| 3 | - | ||
| 4 | - | ||
| 5 | - | ||
| 3 | + | [[Procedure/ru|Процедура]] **Dec** (decrement) в языке программирования Pascal позволяет вам легко вычесть 1 (или любое другое значение) из [[Variable/ru|переменной]]. | |
| 6 | 4 | ||
| 7 | - | ||
| 8 | - | ||
| 5 | + | Например, используя процедуру **Dec** (decrement) вы можете уменьшить значение переменной **a** на 1, как в следующем коде: | |
| 9 | 6 | ``` | |
| 10 | - | ||
| 11 | - | ||
| 7 | + | dec( a ); | |
| 8 | + | ``` | |
| 12 | 9 | ||
| 13 | - | ||
| 14 | - | ||
| 10 | + | Если вы хотите уменьшить на 2 (или на любое другое значение): | |
| 15 | 11 | ``` | |
| 12 | + | dec( a, 2 ); | |
| 13 | + | ``` | |
| 16 | 14 | ||
| 17 | - | ||
| 15 | + | Процедура **Dec** включена в [[Unit/ru|модуль]] [System](</index.php?title=System/ru&action=edit&redlink=1> "System/ru \(page does not exist\)"). | |
| 18 | 16 | ||
| 17 | + | ||
| 18 | + | ||
| 19 | 19 | ## См. также | |
| 20 | 20 | ||
| 21 | - | ||
| 22 | - | ||
| 23 | - | ||
| 24 | - | ||
| 21 | + | * Ссылка на документацию по RTL: [dec](<http://lazarus-ccr.sourceforge.net/docs/rtl/system/dec.html> "doc:rtl/system/dec.html") | |
| 22 | + | * [[Inc/ru|Inc]] \- увеличивает значение целочисленной переменной. | |
| 23 | + | * Ссылка на документацию по RTL: [pred](<http://lazarus-ccr.sourceforge.net/docs//rtl/system/pred.html> "doc:/rtl/system/pred.html") \- Возвращает предыдущий элемент порядкового типа. | |
| 24 | + | * [[For/ru|For]] control_variable := start_point [[Downto/ru|Downto]] end_point [[Do/ru|Do]] statement. | |
| 25 | 25 | ||
| 26 | 26 | --- | |
| 27 | - | ||
| 27 | + | *From the Free Pascal wiki, page "Dec/ru", as the Internet Archive kept it on 2022-07-05. 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).* |
