Lecture 1.
Logical operator for AND and OR
1. X=y=z=17 is valid, evaluate from right to left 2. C++ has integer division and floating point division 31/2/2.0 = (31/2)/2.0, integer first
} else {... } Note: compared to python, there is no : and tab requirement
...break; case 4: ...break; Case 5: ...break; ... default: .... (No break) }
}
{ Function code... }
Example: Int computeFactorial( int num ); Name should be descriptive for its purpose
|
AuthorShaowu Pan Archives
December 2017
Categories
All
|