This repository contains examples of C/C++ programs that document some feature of the language. They can serve as a cheat sheet and are mainly intended as a note to myself.
- Hello World
- Hello commented World
- Variables, Declarations and Data Types
- If and Switch
- Loops
- Arrays (static)
- Strings
- Pointers
- Arrays and Pointers
- Dynamic Arrays
- Functions
- Function Pointers
- Structs
- Enums
- Console Input
- File IO
- Math
- Hello World
- Classes and Objects, Stack Example
- Inheritance and Access Modifier
- Multiple Inheritance
- Multiple Inheritance, Constructors with Parameters and Member Initialization Lists
- Virtual Inheritance
- Static Member Variables, Friend Functions, Employee Example
- Default Arguments and Overloading Functions
- Overloading Operators
- Polymorphism and Virtual Functions
- Abstract Classes and Purely Virtual Functions
- References
- Dynamic Arrays
- Const and Mutable
- Template Functions
- Template Classes
- Lists
- Vectors
- Maps
- Sets
- Algorithms