October 2019
Beginner to intermediate
626 pages
10h 31m
English
This section is included to assist the students to perform the activities in the book. It includes detailed steps that are to be performed by the students to achieve the objectives of the activities.
In this activity, we will implement a tweaked version of a doubly linked list which can be used to store a song playlist and supports the necessary functions. Follow these steps to complete the activity:
#include <iostream>
template <typename T>
struct cir_list_node
{
T* data;
cir_list_node *next, *prev;
~cir_list_node()
{
delete data;
} ...
Read now
Unlock full access