C++ Short Course (optional)
An Introduction to C++ for Data Structures Students
All programming assignments in the course will use C++. You will set up your programming infrastructure, and get a very brief introduction to the language in your first lab. This (optional) tutorial gives a principled description of how the language works so you can avoid many of the typical C++ "gotchas." (I strongly recommend that you watch these videos at 1.5x. :) )
In this tutorial, we will learn how C++ implements:
- Classes
- Pointers
- Arrays
- Parameter passing
- Return values
- Constructors (reprise)
- The Big 3
- Memory management
- Overloading operators
- Inheritance (not included)
- Templates (superficial)
- Generic programming (not included)
Old Video | 2020W2 Video | Blank Slides | Old Annotated |
---|---|---|---|
Session 1 |
Links to an external site.Passcode: q6jq#bWD |
cppShortCourse1.pdf | cppShortCourse1-ann.pdf |
Session 2 |
Links to an external site.Passcode: 6=w?=m3O |
cppShortCourse1.pdf | cppShortCourse1-ann.pdf |
Session 3 (starts at 30min) |
Links to an external site.Passcode: C0xX^exd |
cppShortCourse2.pdf | cppShortCourse2-ann.pdf |