mirror of
https://github.com/processing/processing4.git
synced 2026-02-12 18:10:43 +01:00
55 lines
889 B
XML
55 lines
889 B
XML
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
<root>
|
|
<name>++ (increment)</name>
|
|
|
|
<category>Math</category>
|
|
|
|
<subcategory>Operators</subcategory>
|
|
|
|
<usage>Web & Application</usage>
|
|
|
|
<example>
|
|
<image></image>
|
|
<code>
|
|
int a = 1; // Sets "a" to 1
|
|
int b = a++; // Sets "b" to 1, then increments "a" to 2
|
|
int c = a; // Sets "c" to 2
|
|
</code>
|
|
</example>
|
|
|
|
<description>
|
|
Increases the value of an integer variable by 1. Equivalent to the operation <b>i = i + 1</b>. If the value of the variable <b>i</b> is five, then the expression <b>i++</b> increases the value of <b>i</b> to 6.
|
|
</description>
|
|
|
|
<syntax>
|
|
value++
|
|
</syntax>
|
|
|
|
<parameter>
|
|
<label>value</label>
|
|
<description>int</description>
|
|
</parameter>
|
|
|
|
<returns></returns>
|
|
|
|
<related>
|
|
+ (add)
|
|
+= (add assign)
|
|
-- (decrement)
|
|
</related>
|
|
|
|
<availability>1.0</availability>
|
|
|
|
<type>Operator</type>
|
|
|
|
<partof>PDE</partof>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</root>
|