Tuesday, 4 August 2020

Chapter 14 // Exercise 17 - 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 14 // Exercise 17

The exceptions defined in the C++ standard library, such as exception, runtime_error, and out_of_range (section 5.6.3), are organised into a class hierarchy (with a useful virtual function what() returning a string supposedly explaining what went wrong). Search your information sources for the C++ standard exception class hierarchy and draw a class hierarchy diagram of it.

Github: https://github.com/l-paz91/principles-practice/tree/master/Chapter%2014/Exercise%2017


I used the hierarchy here: https://en.cppreference.com/w/cpp/error/exception

I procrastinated on this for two fucking months because I thought I would do it the proper way and make a full class that can draw any custom binary tree with fancy auto spacing...tonight I sat down and said to myself "life is too fucking short, just do it in the hackiest and shortest way possible you absolute fucking lemon". So that's what I did and I honestly don't care. It's done and I can move on.

Principles & Practice Using C++ Chapter 14 Exercise 17

No comments:

Post a Comment