Thursday 3 January 2013

Declared constants

With the const prefix you can declare constants with a specific type in the same way as you would do with a
variable: 





Here, path width and tabulator are two typed constants. They are treated just like regular variables except that
their values cannot be modified after their definition.



Operators 

Once we know of the existence of variables and constants, we can begin to operate with them. For that purpose,
C++ integrates operators. Unlike other languages whose operators are mainly keywords, operators in C++are
mostly made of signs that are not part of the alphabet but are available in all keyboards. This makes C++ code
shorter and more international, since it relies less on English words, but requires a little of learning effort in the
beginning.
You do not have to memorize all the content of thispage. Most details are only provided to serve as alater
reference in case you need it.

No comments:

Post a Comment