what the hell? i didnt do anything wrong lol. so far as i can see...
linkedList.h
linkedQueue.hCode:class linkedList:public linkedQueue { public: linkedList(); ~linkedList(); private: };
it keeps saying 'expected class-name before '{' token'Code: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); };



LinkBack URL
About LinkBacks


