school/cs235/lab05/linkedlist.h
2016-04-06 20:46:10 -07:00

25 lines
581 B
C++

#ifndef __LINKEDLIST_H__
#define __LINKEDLIST_H__
#include <iostream>
#include "node.h"
using namespace std;
class linkedlist {
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