Pages

Monday, 30 March 2020

Chapter 13 // Drill 3 - Principles & Practice Using C++

In this exercise I am using Visual Studio 2017 and the graphics files found here:
https://github.com/l-paz91/principles-practice/tree/master/Graphics%20Files

Chapter 13 // Drill 3

Make the eight squares on the diagonal starting from the top left corner red (use Rectangle).

Github: https://github.com/l-paz91/principles-practice/blob/master/Chapter%2013/Drills/Drill%203

I know he intended us using templates to draw the rectangles in this exercise. I now understand why the copy constructors in Shape had been deleted. However, I'm not going to use templates because they are slow and should only be used if absolutely necessary.

Chapter 13 // Drill 3 - Principles & Practice Using C++

No comments:

Post a Comment