Week 4 Class 7 Thu Feb 05 Posted: Feb 05
After Class
Announcements
git pull it into your local repository (even in a codespace).GitHub Codespaces I updated the image, srcml/codespaces, used by our projects in the codespace container. Besides new versions of the installed packages, including cmake, you can now use the manual utility, man g++, and even man srcml.
When an image is updated, existing codespaces are still using the old image. To use the new image, you must start a new up a new codespace. You also probably want to delete the old one so you don't get confused. Make sure you committed and pushed in the codespace
Exercise 21: Include Guard Name Quiz Available after class from a link in Brightspace.
You may want to review your notes on include guard names before taking it. Answers must be exact.
Agenda
Exercise 23: Role of Include Files
For each of the following, write the code necessary to call the function. Include all error handling:
An include file is not for the developer of the corresponding .cpp file. It is so that the developer calling the function can use it, and use it properly. It has to be sufficient for the developer to call the function, but not include anything more.
Facts
The results of part v1b is that overall there is a misunderstanding of the purpose of an include file.
From the function caller's perspective:
From the function developer's perspective:
Exercise 20: Rainfall V Continuing on using the workflow from Rainfall I. As before, you can follow along and see the commits that I make in class:
Unless otherwise noted, exercises are due by 3:30 pm on Monday, Feb 9