In this exercise I am using Visual Studio 2017 and a modified version of the std_lib_facilities header found here.
Sunday, 20 December 2020
Chapter 18 // Exercise 12 - Principles & Practice Using C++
Monday, 16 November 2020
Chapter 18 // Exercise 11 - Principles & Practice Using C++
https://www.epaperpress.com/sortsearch/download/skiplist.pdf
It contains pseudo code for each function but it's written in Pascal. I had fun trying to decode that....not. Pascal for the most part is relatively similar to C++; the main issue was working out when I had to de-reference or new something up. At one point I was convinced his code didn't work but of course it was just me that wasn't working.
A skip list is pretty much made up of Nodes, a node contains a value and an array of pointers to other nodes ahead of it. mHead is the start of the Skip list and we can see here that it's array mNext is only showing us mNext[0]. How do you find out what mNext[1] is at this point?
That's great for specific parts of the array. But what if you want to glance quickly at the entire array? Well if the array has been dynamically allocated, in the watch window, click on a new line and type in:
Tuesday, 10 November 2020
Chapter 18 // Exercise 10 - Principles & Practice Using C++
In this exercise I am using Visual Studio 2017 and the std_lib_facilities header provided by Stroustrup.
Chapter 18 // Exercise 10Monday, 9 November 2020
Chapter 18 // Exercise 9 - Principles & Practice Using C++
In this exercise I am using Visual Studio 2017 and the std_lib_facilities header provided by Stroustrup.
Chapter 18 // Exercise 9Sunday, 8 November 2020
Chapter 18 // Exercise 8 - Principles & Practice Using C++
In this exercise I am using Visual Studio 2017 and the std_lib_facilities header provided by Stroustrup.
Chapter 18 // Exercise 8Saturday, 7 November 2020
Chapter 18 // Exercise 7 - Principles & Practice Using C++
Friday, 6 November 2020
Chapter 18 // Exercise 5, 6 - Principles & Practice Using C++
Thursday, 5 November 2020
Chapter 18 // Exercise 4 - Principles & Practice Using C++
In this exercise I am using Visual Studio 2017 and the std_lib_facilities header provided by Stroustrup.
Chapter 18 // Exercise 4Wednesday, 4 November 2020
Chapter 18 // Exercise 3 - Principles & Practice Using C++
In this exercise I am using Visual Studio 2017 and the std_lib_facilities header provided by Stroustrup.
Chapter 18 // Exercise 3Tuesday, 3 November 2020
Chapter 18 // Exercise 2 - Principles & Practice Using C++
In this exercise I am using Visual Studio 2017 and the std_lib_facilities header provided by Stroustrup.
Chapter 18 // Exercise 2Monday, 2 November 2020
Chapter 18 // Exercise 1 - Principles & Practice Using C++
In this exercise I am using Visual Studio 2017 and the std_lib_facilities header provided by Stroustrup.
Chapter 18 // Exercise 1Sunday, 1 November 2020
Chapter 18 // Vector Drills - Principles & Practice Using C++
In this exercise I am using Visual Studio 2017 and the std_lib_facilities header provided by Stroustrup.
Chapter 18 // Vector DrillsSaturday, 31 October 2020
Chapter 18 // Array Drills - Principles & Practice Using C++
In this exercise I am using Visual Studio 2017 and the std_lib_facilities header provided by Stroustrup.
Chapter 18 // Array Drills