Skills101
← All topics

C++ Programming

C++ for college exams, competitive programming and interviews: from C to C++, references, classes, inheritance and virtual functions, operator overloading, templates, the STL and smart pointers. Every program is compiled and its output checked.

🎓 Free certificate for this subject

Pass all 9 lesson quizzes to get a verified certificate you can add to LinkedIn. Reading is free without an account — log in to track your progress.

Log in to track progress
  1. 01Introduction to C++ — From C to C++, cin/cout, Namespaces and StringsWhat C++ adds to C, your first program, cin and cout, namespaces, the string class, auto and range-based for loops — with every program compiled and checked.
  2. 02References and Functions in C++ — Pass by Reference, Overloading, DefaultsReferences as another name for a variable, pass by value vs by reference vs by const reference, function overloading, default arguments and inline functions.
  3. 03Classes and Objects in C++ — Constructors, Destructors, this and staticBuild classes with private data and public methods, constructors (default, parameterised, initializer lists), destructors, the this pointer, const member functions and static members.
  4. 04Inheritance and Virtual Functions in C++ — Polymorphism, Abstract ClassesReuse classes with inheritance, access modes, constructor order, virtual functions and the vtable, pure virtual functions and abstract classes, and why destructors must be virtual.
  5. 05Operator Overloading, friend Functions and Templates in C++Make your classes work with +, ==, << and more, use friend functions correctly, and write generic code once with function and class templates.
  6. 06The C++ STL — vector, pair, map, set, unordered_map, stack, queue, priority_queueThe containers every C++ programmer uses daily, with their costs: vector, pair, map and set, unordered_map, stack, queue, deque and priority_queue — with runnable examples.
  7. 07STL Algorithms and Lambdas — sort, binary search, accumulate and Competitive Programming TipsSort with custom comparators and lambdas, binary search with lower_bound, accumulate, count, reverse, unique, next_permutation, and the fast-I/O setup competitive programmers use.
  8. 08Memory in C++ — new/delete, RAII, Smart Pointers, Copy vs Move and ExceptionsManage memory the modern way: new and delete, RAII, unique_ptr and shared_ptr, the rule of three/five, copy vs move, and exception handling with try, catch and throw.
  9. 09C++ Interview Questions and Output Questions — With ExplanationsThe C++ questions asked in campus interviews and written tests: C vs C++, references, virtual functions, constructors, the STL, memory — plus tricky output programs, each compiled and explained.