SC 428: Introduction to C++ and the STL
Short course for beginners: control flow, time complexity, arrays, vectors and the STL. Lecture slides, recordings and practice sheets.
Instructor: Bhavay Goyal, Kalp Shah, Ramji Purwar
Term: Autumn
Location: IIT Gandhinagar
Slides open in a new page and can be presented full screen (press F).
Lecture 1: Why C++, and your first programs
Why C++ is fast, how it runs, first programs, data types, operators, loops, competitive programming basics and compiler optimizations.
Slides · Recording · Practice sheet
Lecture 2: Control Flow, Complexity, Arrays and Vectors
if / else and switch, loops and patterns, Big-O intuition, arrays, vectors and their costs, and useful STL functions.
Lecture 3: Vectors Recap and Strings
A recap of vectors, followed by strings in C++ and the operations you use on them.
Lecture 5: Sets, Maps and Unordered Maps
Sets, maps and unordered maps in C++: how they work, their costs, and when to use each.