Previous Lecture lect04 Next Lecture

Code from lecture

https://github.com/ucsb-cs24-f19-nichols/code-from-class/tree/master/10-08

Topics

Lecture video

Video: https://www.youtube.com/watch?v=JL0E7ibQ2rc&feature=youtu.be

Written notes: https://1drv.ms/o/s!AlgIeD1urAgmgQlHpyss6qfDD-Xm

Code: https://github.com/ucsb-cs24-f19-nichols/code-from-class/tree/master/10-08/10-08-video

Linked Lists

Unit testing

Makefiles and unit testing

Non member functions and friend functions

Operator overloading - Pages 63 - 80 in the book

Example from reading:

point p1, p2;
if (p1 == p2){
  cout<<"Points are equal\n";
}

We will specifically discuss:

  1. Overloading binary comparison operators e.g. ==
  2. Overloading binary arithmetic operators e.g. +
  3. Overloading output and input operators e.g. » and «