Files
processing4/web/reference/API/increment.xml
2005-01-27 06:48:42 +00:00

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 &amp; 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>