#ifndef INT_LINKED_LIST
#define INT_LINKED_LIST
//for nodes of the list
class IntSLLNode
{
public: //all members of IntSLLNode are declared public,in order to accessible through pointers,
IntSLLNode(){
next=0;
}
IntSLLNode(int el, IntSLLNode *ptr = 0){
info = el; next = ptr;
}
int info;
IntSLLNode *next;
};
//for access to the list
class IntSLList{
public:
IntSLList(){
head = tail = 0;
}
~IntSLList();
int isEmpty(){
return head == 0;
}
void addToHead(int);
void addToTail(int);
int deleteFromHead();
int deleteFromTail();
void deleteNode(int);
bool isInList(int) const;
void print();
private:
IntSLLNode *head, *tail;
};
#endif