This is a personal repository to take notes and codes samples for this online course.
- Chapters 1 and 2 were basically introduction and IDE setup, so we don't have codes for them;
- In course, the instructor used Codeblocks but I used Visual Studio Code with C++ Extension installed;
- All examples here were compiled with g++ in Linux (Linux Mint);
Using g++
to compile the code. Example:
$ g++ main.cpp
This will generate a compiled file named a.out
in same directory.
$ ./a.out
- The most C++ program;
- Hello world, printing to monitor;
- More advanced print formats;
- Variables in C++ - Part 1;
- Variables in C++ - Part 2;
- Getting data from standard input (keyboard);
- First "useful" program - calculate sum;
- Constant variable in C++, macro constants;
- The auto keyword, new in C++11;
- Comments;
- Inclusion of other libraries;
- If-else statement: conditional execution
- Logical operators part 1;
- Logical operators part 2;
- Relational operators;
- Comma operator;
- For Loop;
- While Loop;
- Do While Loop;
- For Each Loop - New in C++11;
- Break Statement;
- Continue Statement;
- GoTo;
- Infinite Loops;
- Nested Loops;
- Declaration and usage;
- Memory representation;
- Array initialization;
- Simple array algorithms;
- C string;
- Concept and Usage;
- Functions With Return Values;
- Functions that do not accept anything and do not return anything;
- Basics lambda functions new in C++11;
- Explanation and Usage - Part 1;
- Explanation and Usage - Part 2;
- Standard Exceptions;
- Generic Catch Block;
- Nested Try-Catch Blocks;
- Exception propagation;
- Concept and Usage;
- Attributes and Structure Initialization;
- Static Attributes;
- Arrays of Struct;
- Generic Programming - Part 1;
- Generic Programming - Part 2;
- Vector;
- Deque;
- String;
- Map;
- Function;
- Concept and Usage;
- Principles of Object Oriented Programming (OOP) - Part 1;
- Principles of Object Oriented Programming (OOP) - Part 2;
- Rule of Zero/three/five and Constructors - Part 1;
- Rule of Zero/three/five and Constructors - Part 2;
- Destructors;
- Friend Functions;
- Generic Classes;
- Decomposition
- Using OS libraries and functions;
- WinAPI Types;
- Checking for Errors;
I did not implemented the lessons of this chapter because I'm using Linux :D
- Let's Play With Files;
- Some fun with basic encryption;
- Introduction to Pointers;
- Comparison Operators and Pointers;
- Operators and Pointers - Part 1;
- Operators and Pointers - Part 2;
- Pointing to Different Objects - Part 1;
- Pointing to Different Objects - Part 2;
- Referencing;
This chapter has some extra contents created by myself like programming exercises. These contents are not in the course.
- 01: Compound Interest Calc;
- 02: Calculate Prime Numbers;