
Table Of Contents
Section 0: Preface
Part I: Getting Started
Section 1: Introduction
Section 2: A First Program
Part II: Basic Syntax
Section 3: Variables, Types, and Operators
Section 4: Control Statements
Section 5: Functions
- 5.1 What is a Function?
- 5.2 Function Basics
- 5.3 Parameters to Functions
- 5.4 Returning Values from Functions
- 5.5 Function Overloading
- 5.6 Recursion and Recursive Functions
Part III: Objects and Memory
Section 6: Introduction to Objects
Section 7: Class Declarations
Section 8: Pointers and Memory Management
- 8.1 What is a Pointer?
- 8.2 Pointers and Instances
- 8.3 Dynamic Memory Allocation
- 8.4 Memory Management
- 8.5 Don't Leak!
Section 9: Arrays
- 9.1 What is an Array?
- 9.2 Implementing an Array
- 9.3 Getting Funky with Arrays
Part IV: Advanced Topics
Section 10: Inheritance, Virtual Methods, and Polymorphism
- 10.1 What is Inheritance?
- 10.2 Inheritance Syntax
- 10.3 Virtual Methods
- 10.4 Polymorphism
Section 11: Streams and File I/O
- 11.1 What is a Stream?
- 11.2 Using Streams
- 11.3 Using File Streams
- 11.4 Using String Streams
Section 12: Project files/Preprocessor directives
- 12.1 Putting together a Project
- 12.2 Preprocessor directives
- 12.3 Makefiles
Section 13: Operator Overloading
- 13.1 What is Overloading?
- 13.2 Overloading an Operator
Section 14: Assertions / Exceptions
- 14.1 What are Assertions and Exceptions?
- 14.2 Assertions
- 14.3 Exceptions: Throw and Catch
Section 15: Macros
- 15.1 What is a Macro?
- 15.2 How are Macros Useful
Part V: Appendix
Appendix A
Appendix B