|
|
|
|
|
|
|
DigitSeq is the same as defined in the section on integer constantsa sequence of decimal (base-10) digits. The form of Exponent is the following: |
|
|
|
|
|
|
|
|
C++ has a rich, sometimes bewildering, variety of operators that allow you to manipulate values of the simple data types. Operators you have learned about so far include the assignment operator (=), the arithmetic operators (+, -, *, /, %), the increment and decrement operators (++, --), the relational operators (==, !=, <, <=, >, >=), and the logical operators (!, &&, ||). Another operatorat least the compiler formally treats it as an operatoris the pair of symbols (). This is either the function call operator, as in |
|
|
|
|
|
|
|
|
or the type cast operator, as in |
|
|
|
|
|
|
|
|
C++ also has operators that are more specialized and seldom found in other programming languages. Here is a table of these additional operators. As you inspect the table, don't panica quick scan will do. |
|
|
|
|
|