|
-
October 17th, 2007, 11:51 PM
#1
Pointer n00b
all i am trying to do is make my pointer linked list a member of my linkedQueue and have been unsuccessful for the last few hours. this is what i have...
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();
Node *rear;
private:
int *front,*rear,count;
void queueError(char* mesg);
};
#endif
Last edited by ovidiucucu; October 18th, 2007 at 03:16 AM.
Reason: [CODE] tags added
-
October 18th, 2007, 03:03 AM
#2
Re: Pointer n00b
And what is the problem with this code?
-
October 18th, 2007, 03:16 AM
#3
-
October 18th, 2007, 11:12 AM
#4
Re: Pointer n00b
Your class linkedQueue has two members named rear.
Code:
Node *rear;
private:
int *front,*rear,count;
-
October 18th, 2007, 01:48 PM
#5
Re: Pointer n00b
all i am trying to do is make my pointer linked list a member of my linkedQueue and have been unsuccessful for the last few hours. this is what i have.
Usually it helps listing the errors too.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|