ya i tried including it and not including it. this is what i have for the whole files...
linkedList.h
Code:
#ifndef linkedList_H
#define linkedList_H
#include<iostream>
#include "linkedQueue.h"
using namespace std;
class linkedList:public linkedQueue
{
public:
linkedList();
~linkedList();
void addFront(el_t newNum);
void deleteRear(el_t& oldNum);
int search(el_t& key);
void deleteIth(int I,el_t& oldNum);
private:
};
#endif //linkedList_H
linkedQueue.h
Code:
#ifndef linkedQueue_H
#define linkedQueue_H
#include<iostream>
using namespace std;
struct Node
{
int elem;
Node *next;
};
class linkedQueue
{
typedef int el_t;
public:
linkedQueue();
~linkedQueue();
void addRear(el_t newNum);
void deleteFront();
bool isEmpty();
int getSize();
void displayAll();
private:
int count;
Node *front,*rear,*temp;//front and rear used to show the front
//and the rear of the queue respectivley.
//temp is used for deleteing elements
void queueError(char* mesg);
};
#endif