school/cs235/lab03/Student_Code/linkedlist.h

26 lines
642 B
C
Raw Normal View History

2016-04-06 20:46:10 -07:00
#ifndef __LINKEDLIST_H__
#define __LINKEDLIST_H__
#include <iostream>
#include "LinkedListInterface.h"
#include "node.h"
using namespace std;
class linkedlist : public LinkedListInterface {
public:
linkedlist();
~linkedlist();
node* head;
bool has_a(int value);
bool is_it_zero(int value);
void insertHead(int value);
void insertTail(int value);
void insertAfter(int value, int insertionNode);
void remove(int value);
void clear();
int at(int index);
int size();
friend ostream & operator<<(ostream & os, linkedlist & f);
};
#endif