| ex5-9list.h - Example 5-9 Linked List - List Header file (ex5-9list.h) |
#ifndef LIST_H
#define LIST_H
#include "ex5-9node.h"
class List
{
Node* top_;
public:
List();
~List();
void push(int item);
int pop();
int top() const;
void print() const;
bool remove(int item);
Node* find(int item);
};
#endif