This shows you the differences between two versions of the page.
cpp:editing_the_value_of_variables [2014/02/19 21:09] jazpen |
cpp:editing_the_value_of_variables [2024/02/16 00:48] (current) |
||
---|---|---|---|
Line 13: | Line 13: | ||
So ''jimmy'' is the variable you want to change (to ten) and ''jimmy + 1'' is the value that exists. Merely typing ''jimmy + 1'' does not set the value of jimmy to 10 because to change the value of something, you must have the equal sign. It is used the same way in C++ as in mathematicals. | So ''jimmy'' is the variable you want to change (to ten) and ''jimmy + 1'' is the value that exists. Merely typing ''jimmy + 1'' does not set the value of jimmy to 10 because to change the value of something, you must have the equal sign. It is used the same way in C++ as in mathematicals. | ||
+ | Because typing ''variable = variable + //x//'' is repetitive and annoying, the creator (all hail Bjarne Stroustrup) made | ||
+ | |||
+ | <fc #FF0000>Editing in Progress</fc> |