Previous Lecture | lect04 | Next Lecture |
Code from lecture
https://github.com/ucsb-cs24-w22/cs24-w22-lectures/tree/main/lect04
Lesson plan
- Starting with the code from the previous lecture where everything was implemented in a single cpp file, we will split the program into a header file (that only contains declarations) and cpp files (containing the implemenation of the complex class’s member functions and test code). A more modular organization of code is desirable for readability, debugging, and maintenance.
- How to compile a program that is split across multiple files by writing an appropriate Makefile
- Correct use of #include
- Operator overloading (updated implementation of the stream operator « for the complex class)