Unlock access to all the studying documents.
View Full Document
Data Structures
Tutorial (Stacks)
Question 1:
1. First copy below code in to CodeBlocks or any IDE.
2. Implement required or missing code according to given tasks a, b, and c.
#include <string>
using namespace std;
class Node {
public:
string name;
char grade;
int marks;
float gpa;
Node* next; // pointer to next
};
class List {
public:
List(void) { head = NULL; } // constructor