Code /* linkedList.h CIS 250 David Klick 2009-02-23 Linked list specification */ #ifndef __LINKEDLIST_H__ #define __LINKEDLIST_H__ #include using std::ostream; class linkedList { public: class node { public: int data; node* next; }; private: node* head; int count; public: linkedList(); ~linkedList(); int length() const; void print() const; bool search(int val) const; int front() const; int back() const; bool isEmpty() const; void addFirst(int val); void addLast(int val); void add(int val); bool remove(int val); friend ostream& operator<<(ostream& out, const linkedList &lst); }; #endif