Data Structures
Tutorial (Lists)
Question 1: Practice LinkedList from Lecture slides.
1. First copy below code in to CodeBlocks or any IDE.
2. Implement required or missing code from lecture slides
#include <iostream>
using namespace std;
// Definition for class Node from lecture slides
class List {
public:
List(void) { head = NULL; } // constructor
~List(void); // destructor
bool IsEmpty() { return head == NULL; }
//Function prototype for InsertNode
//Function prototype for FindNode
//Function prototype for DeleteNode
//Function prototype for DisplayList