diff options
author | Marti Bolivar <mbolivar@mit.edu> | 2010-10-22 21:10:34 -0400 |
---|---|---|
committer | Marti Bolivar <mbolivar@mit.edu> | 2010-10-22 21:10:34 -0400 |
commit | dd7e6ecdafcb8938e23dfd18a36d70628fbc74bd (patch) | |
tree | 8ed97b472530cc08ded6f906624eaa059949fb6a /docs/source/arduino/assignment.rst | |
parent | 22ff1db8a76c7047b61a424ae1fa5f43697fcb34 (diff) | |
download | librambutan-dd7e6ecdafcb8938e23dfd18a36d70628fbc74bd.tar.gz librambutan-dd7e6ecdafcb8938e23dfd18a36d70628fbc74bd.zip |
docs
Diffstat (limited to 'docs/source/arduino/assignment.rst')
-rw-r--r-- | docs/source/arduino/assignment.rst | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/docs/source/arduino/assignment.rst b/docs/source/arduino/assignment.rst index 8b851e8..1c790bb 100644 --- a/docs/source/arduino/assignment.rst +++ b/docs/source/arduino/assignment.rst @@ -11,7 +11,7 @@ the left of the equal sign. The single equal sign in the C++ programming language is called the assignment operator. It has a different meaning than in algebra -class where it indicated an equation or equality. The assignment +class, where it indicated an equation or equality. The assignment operator tells the microcontroller to evaluate whatever value or expression is on the right side of the equal sign, and store it in the variable to the left of the equal sign [#fgross]_. @@ -23,7 +23,7 @@ Example :: - int sensVal; // declare an integer variable named sensVal + int sensVal; // declare an integer variable named sensVal senVal = analogRead(0); // store the (digitized) input voltage at analog pin 0 in SensVal @@ -56,8 +56,9 @@ See Also .. rubric:: Footnotes - Experienced C++ programmers know this to be an oversimplification - of what happens when the variable on the left hand side is an - object. See Richard Gillam's wonderful and scary `The Anatomy of - the Assignment Operator +.. [#fgross] Experienced C++ programmers know this to be an + oversimplification of what happens when the variable on the left + hand side is an object. See Richard Gillam's wonderful and scary + `The Anatomy of the Assignment Operator <http://icu-project.org/docs/papers/cpp_report/the_anatomy_of_the_assignment_operator.html>`_ + for more information. |