#ifndef __List_h__
#define __List_h__
//Linked list class .h file Brian Jahns cs252 c1999
#include <iostream.h>
#include "Node.h"
class List
{
 public:
  List();
  List(const List&);
  ~List();
  const List& operator = (const List& list);
  bool isempty() const;
  int listlength() const;
  void output() const;                             //not primitive
  bool insert(int pos, int newitem);
  bool del(int pos);
  bool find(int pos, int& data) const;
 private:
  Node* head;
  int size;
  Node* ptrto(int pos) const;
};
#endif __List_h__