aboutsummaryrefslogtreecommitdiffstats
path: root/source/lang/increment.rst
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@mit.edu>2010-12-03 20:18:00 -0500
committerMarti Bolivar <mbolivar@mit.edu>2010-12-03 20:18:00 -0500
commit210f3d2b1555bae87c9de27ea145e16d3bddb0f8 (patch)
tree5e409fff948c9a1847d08e5ec34f905ea2212956 /source/lang/increment.rst
parent11573d0fca18ef2ccd965ab67d419afd48b7cef2 (diff)
downloadlibrambutan-210f3d2b1555bae87c9de27ea145e16d3bddb0f8.tar.gz
librambutan-210f3d2b1555bae87c9de27ea145e16d3bddb0f8.zip
cleaning up previous commits.
note that addition of new files under docs/source/lang/api and docs/source/lang/cpp which were just copies of files in docs/source/lang/ imply that change history is lost to git.
Diffstat (limited to 'source/lang/increment.rst')
-rw-r--r--source/lang/increment.rst37
1 files changed, 0 insertions, 37 deletions
diff --git a/source/lang/increment.rst b/source/lang/increment.rst
deleted file mode 100644
index 6dffa80..0000000
--- a/source/lang/increment.rst
+++ /dev/null
@@ -1,37 +0,0 @@
-.. highlight:: cpp
-
-.. _lang-increment:
-
-Increment and Decrement Operators (``++``, ``--``)
-==================================================
-
-These operators increment (add one to) or decrement (subtract one
-from) a variable. If they come before the variable, they return its
-new value; otherwise, they return its old value.
-
-Some quick examples::
-
- x++; // adds one to x, and returns the old value of x
- ++x; // adds one to x, and returns the new value of x
-
- x--; // decrement x by one and returns the old value of x
- --x; // decrement x by one and returns the new value of x
-
-A more extended example::
-
- x = 2;
- y = ++x; // x now contains 3, y contains 3
- y = x--; // x contains 2 again, y still contains 3
-
-.. warning:: Be careful! You cannot put a space in between the two
- ``+`` or ``-`` signs. This example is broken::
-
- // this line won't compile (notice the extra space):
- int y = x+ +;
-
-See Also
---------
-
-- :ref:`lang-compoundarithmetic`
-
-.. include:: cc-attribution.txt