Week 7 Class 12 Thu Feb 26 Posted: Feb 26
After Class
Announcements
Exercise 37: Create a UML Class Diagram Scores in Brightspace. Common issues:
static operator:; and may require to be on one line// Exercise ... and // Add ...Exercise 39: Utilities Scores and feedback in Brightspace. I took off for:
std::vector<int> vconst int@TODOs that are incomplete or not completedZero-Tolerance Policy
The following are fundamental design choices at the C++ level that we have spent more than enough time on. To make sure the message is received, any violations of the following will receive a 0 on the exercise, project, or test question:
std::string by value, e.g. void f(std::string);std::vector<> by value, e.g., void f(std::vector<int>);const value, e.g., void f(const int n);For why we do not pass large objects by value, see the Benchmarks
Agenda
Exercise 42: Utilities II
If you received a non-zero score for Exercise 39: Utilities, your score on that exercise will be replaced by this score if this score is higher. So if you got a 7/10 on Exercise 30, and you get a 10/10 for Exercise 33, your Exercise 30 score will change to a 10/10.
Using the feedback in class, improve your function declarations for the Utilities code. I suggest a commit for each change of a function name, e.g., Rename ..., and each change of a parameter type, e.g., Change ....
Other changes to consider:
[in],[out], and [in/out]. I saw some [in/out] that is really [out]. If the previous contents of a parameter are not used in the function, and the parameter value is changed, it is an [out].Unless otherwise noted, exercises are due by 3:30 pm on Fri Feb 27