C++ Short Course (optional)

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

https://ubc.zoom.us/rec/share/nwRppLXCkivYPeuyOI0y1V7Neuj4ovahP46t_BP2d5O-V8RpvWRDUvA5A30DSONn.5nCceoYt0Q1tpTdJ Links to an external site.

Links to an external site.Passcode: q6jq#bWD

cppShortCourse1.pdf cppShortCourse1-ann.pdf
Session 2

https://ubc.zoom.us/rec/share/kAvxveW4Vh7spadP58yDFBGyl-FQzqIaV5dIn3oSeEfFEtwwQjBrJceBtdsrOWrI.pk6ieiR6wg1oA5uv Links to an external site.

Links to an external site.Passcode: 6=w?=m3O

cppShortCourse1.pdf cppShortCourse1-ann.pdf
Session 3 (starts at 30min)

https://ubc.zoom.us/rec/share/BHqRJ42fJPKrJGL-jtMPbKuKW10I8p_7n5d_NNuqEagOlpg4-Vlui-wHueIJVu24.46HMNQAa1fo8fp4d Links to an external site.

Links to an external site.Passcode: C0xX^exd

cppShortCourse2.pdf cppShortCourse2-ann.pdf