class instance error

hi everybody;

I have a prob. with declaring a class instance can someone get me help
here is the main body:
#include <iostream.h>
#include <conio.h>
#include <Queue.h>
//using namespace std;

int main() {
Queue see ;
int size=5;
int n=0;


/*s.enQueue(1);
s.enQueue(2); 
s.enQueue(3);
s.enQueue(4);
s.enQueue(5);*/

while (n<=4) {

see.enQueue(n);
n++;
}

see.deQueue(n);

see.getfornt();



// while (int x<=5) {
//x=1;
//Queue.deQueue(x);
//cout<<"the deleted item is "<<Queue.deQueue(x)<<endl;
//x++
//}
return 0;
}


this is for the class declaration:

class Queue{

private:
int front;
int back;
char item [5];
int m;

public:
Queue();
~Queue();
bool isEmpty();
bool isFull();
void enQueue(int);
void deQueue();
int getfront();
int getrear();
};


Queue::Queue(){
front = 0;
back= -1;}

bool Queue::isFull(){
return bool (back== 5-1);}

bool Queue::isEmpty(){
return bool (back < front);}

void Queue::enQueue(int insertitem)
{

insertitem = m;
if (isFull()){
cout <<"the Queue full";}
else
{
back++;
item[back]= insertitem;
}
}

void Queue::deQueue(){

int deleteditem = m;
if (isEmpty())
cout<<"the queue is empty";
else
{
deleteditem = item[front];
front++;
}
}
int Queue::getfront() {
for (int i=0; i<=4; i++)
cout <<"inserted items are" <<item[front]<<endl;
}

int Queue::getrear() {
return item[back]; }

// int Queue::getfront(){

//}
the compiler shows that the Queue and see is the "Queue see" is undefined symbols
what i need from this code to do is to insert 5 integers to the queue the remove them and display the inserted and the removed as will.
I need to submit it soon
Topic archived. No new replies allowed.