In this exercise I am using Visual Studio 2017 and a modified version of the std_lib_facilities header found here.
Monday, 8 March 2021
Chapter 19 // Exercise 16 - Principles & Practice Using C++
Sunday, 7 March 2021
Chapter 19 // Exercise 14, 15 - Principles & Practice Using C++
In this exercise I am using Visual Studio 2017 and a modified version of the std_lib_facilities header found here.
Thursday, 4 March 2021
Chapter 19 // Exercise 13 - Principles & Practice Using C++
In this exercise I am using Visual Studio 2017 and a modified version of the std_lib_facilities header found here.
Tuesday, 2 March 2021
Chapter 19 // Exercise 12 - Principles & Practice Using C++
In this exercise I am using Visual Studio 2017 and a modified version of the std_lib_facilities header found here.
Monday, 1 March 2021
Chapter 19 // Exercise 11 - Principles & Practice Using C++
In this exercise I am using Visual Studio 2017 and a modified version of the std_lib_facilities header found here.
Thursday, 11 February 2021
Chapter 19 // Exercise 10 - Principles & Practice Using C++
In this exercise I am using Visual Studio 2017 and a modified version of the std_lib_facilities header found here.
Tuesday, 9 February 2021
Chapter 19 // Exercise 8, 9 - Principles & Practice Using C++
In this exercise I am using Visual Studio 2017 and a modified version of the std_lib_facilities header found here.
Interestingly; the destructor for MyVector is not called on exiting main but it is called when MyVector is local to a function. I tested this with a std::vector and it to did not have it's destructor called at the end of main. Now I know for a fact that std::vector will clean up after itself properly so it must mean that this _CrtDumpMemoryLeaks() function dumps the output before MyVector has been destroyed. I'm happy that the class is properly allocating and freeing up memory though when it's local to other functions and I can see it being destroyed.
Sunday, 31 January 2021
Chapter 19 // Exercise 7 - Principles & Practice Using C++
In this exercise I am using Visual Studio 2017 and a modified version of the std_lib_facilities header found here.
Thursday, 28 January 2021
Chapter 19 // Exercise 6 - Principles & Practice Using C++
In this exercise I am using Visual Studio 2017 and a modified version of the std_lib_facilities header found here.
Very handy. Probably not as flexible as concepts however there are other useful checks you can do with functions in type_traits:
Wednesday, 20 January 2021
Chapter 19 // Exercise 5 - Principles & Practice Using C++
Tuesday, 12 January 2021
Chapter 19 // Exercise 4 - Principles & Practice Using C++
Sunday, 10 January 2021
Chapter 19 // Exercise 3 - Principles & Practice Using C++
In this exercise I am using Visual Studio 2017 and a modified version of the std_lib_facilities header found here.
Thursday, 7 January 2021
Chapter 19 // Exercise 2 - Principles & Practice Using C++
In this exercise I am using Visual Studio 2017 and a modified version of the std_lib_facilities header found here.
Wednesday, 6 January 2021
Chapter 19 // Exercise 1 - Principles & Practice Using C++
Chapter 19 // Exercise 1
Wednesday, 23 December 2020
Chapter 19 // Drill 14 - Principles & Practice Using C++
In these exercises I am using Visual Studio 2017 and the std_lib_facilities header provided by Stroustrup.
Apart from not being able to handle vectors of custom types (what a nightmare), it also doesn't handle strings with spaces in them. But I'm pretty happy with this. He chose this input/output specifically because it's really annoying. Bjarne is the true sneaky fox. If you needed very specific string output though I don't think you would use generic types.
Tuesday, 22 December 2020
Chapter 19 // Drill 1, 2, 3, 4, 5, 6, 7, 8 ,9, 10, 11, 12, 13 - Principles & Practice Using C++
In these exercises I am using Visual Studio 2017 and the std_lib_facilities header provided by Stroustrup.
