ya i suspected that (complete n00b if you couldnt tell already lol)
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(el_t oldNum);
bool isEmpty();
int getSize();
void displayAll();
private:
int *front,*rear,count;
void queueError(char* mesg);
};
#endif
is what if have now, and when i put in 'Node *rear;' it gives me all sorts of crap for it. isnt that how i would allow all the functions to use it?