diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2011-04-26 03:27:10 -0400 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2011-04-26 03:27:10 -0400 |
commit | 5606a05e2992043387a9cf995365db7e1dc83cff (patch) | |
tree | 163705188111e89e18f2325e7cb987672381bcb7 /source/lang/cpp/char.rst | |
parent | 1b12488ce8b7c69968709b0c1c17975e519b0f5e (diff) | |
download | librambutan-5606a05e2992043387a9cf995365db7e1dc83cff.tar.gz librambutan-5606a05e2992043387a9cf995365db7e1dc83cff.zip |
0.0.10 Documentation checkpoint.
The vast majority of the Maple-specific values have been pulled out of
the higher-level overview pages and replaced with refs into documents
under /docs/source/hardware/.
Much of the work that's left to be done in this regard is labeled with
versioned TODO and FIXME comments.
Suggestions from StephenFromNYC and gbulmer were incorporated from
this forum thread:
http://forums.leaflabs.com/topic.php?id=703
Diffstat (limited to 'source/lang/cpp/char.rst')
-rw-r--r-- | source/lang/cpp/char.rst | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/source/lang/cpp/char.rst b/source/lang/cpp/char.rst index b8747f3..686c0d1 100644 --- a/source/lang/cpp/char.rst +++ b/source/lang/cpp/char.rst @@ -10,7 +10,6 @@ value from -128 to 127). Character literals are written in single quotes, like this: ``'A'`` (for multiple characters - strings - use double quotes: ``"ABC"``). - Just like everything else on a computer, characters are stored as numbers. You can see the specific encoding in the `ASCII chart <http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters>`_\ @@ -25,26 +24,21 @@ The ``char`` datatype is a signed type, meaning that it encodes numbers from -128 to 127. For an unsigned type, which stores values from 0 to 255, just use the type ``unsigned char`` (two words). - Example ------- :: - // the following two lines are equivalent, using the ASCII + // The following two lines are equivalent, using the ASCII // character encoding: char c = 'A'; char c = 65; - -See also +See Also -------- - - :ref:`lang-int` - :ref:`lang-array` (a string is just an array of ``char``\ s) - :ref:`Serial.println() <lang-serial-println>` - - .. include:: cc-attribution.txt |