I am trying to teach C++ to someone with a bit of C and Javascript experience.
I came up with 22 sample codes. Are there any of your favourite topics that are missing?
The codes are at: https://github.com/sjhalayka/sample_cpp_code
The topics covered are:
- Plain old data types
- Functions with references
- Function overloading and templates
- Conditionals
- Arrays and vector
- Loops
- Basic classes
- Containers and iterators
- Streams
- Binary files
- Constructor, destructor
- Exceptions
- argc, argv
- Namespaces
- High-resolution timing
- Mersenne Twister PRNG
- File systems
- Regular expressions
- Function pointers
- Multithreading
- Overloading operators
- Custom allocator