 |
|
|
|
|
Logical AND |
|
|
|
| |
 |
|
|
|
|
Logical OR |
|
|
|
| |
 |
|
|
|
|
Logical NOT |
|
|
|
| |
 |
|
|
|
|
Relational Precedence |
|
|
|
| |
 |
|
|
|
|
More About Truth and Falsehood |
|
|
|
| |
 |
|
|
|
|
Summary |
|
|
|
| |
 |
|
|
|
|
Q&A |
|
|
|
| |
| |
 |
|
|
|
|
What Is a Function? |
|
|
|
| |
 |
|
|
|
|
Declaring and Defining Functions |
|
|
|
| |
 |
|
|
|
|
Declaring the Function |
|
|
|
| |
 |
|
|
|
|
Defining the Function |
|
|
|
| |
 |
|
|
|
|
Local Variables |
|
|
|
| |
 |
|
|
|
|
Global Variables |
|
|
|
| |
 |
|
|
|
|
Function Statements |
|
|
|
| |
 |
|
|
|
|
Function Arguments |
|
|
|
| |
 |
|
|
|
|
Using Functions as Parameters to Functions |
|
|
|
| |
 |
|
|
|
|
Parameters Are Local Variables |
|
|
|
| |
 |
|
|
|
|
Return Values |
|
|
|
| |
 |
|
|
|
|
Default Parameters |
|
|
|
| |
 |
|
|
|
|
Overloading Functions |
|
|
|
| |
 |
|
|
|
|
Inline Functions |
|
|
|
| |
 |
|
|
|
|
How Functions WorkA Look Under the Hood |
|
|
|
| |
 |
|
|
|
|
The Stack and Functions |
|
|
|
| |
 |
|
|
|
|
Summary |
|
|
|
| |
 |
|
|
|
|
Q&A |
|
|
|
| |
| |
| |
 |
|
|
|
|
Creating New Types |
|
|
|
| |
 |
|
|
|
|
What Is a Type? |
|
|
|
| |
 |
|
|
|
|
Why Create a New Type? |
|
|
|
| |
 |
|
|
|
|
Classes and Members |
|
|
|
| |
 |
|
|
|
|
Declaring a Class |
|
|
|
| |
 |
|
|
|
|
A Word on Naming Conventions |
|
|
|
| |
 |
|
|
|
|
Defining an Object |
|
|
|
| |
 |
|
|
|
|
Classes Versus Objects |
|
|
|
| |
 |
|
|
|
|
Accessing Class Members |
|
|
|
| |
 |
|
|
|
|
Assign to Objects, Not to Classes |
|
|
|
| |
 |
|
|
|
|
Private Versus Public |
|
|
|
| |
 |
|
|
|
|
Make Member Data Private |
|
|
|
| |