home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_08_09
/
8n09121a
< prev
next >
Wrap
Text File
|
1990-07-09
|
619b
|
30 lines
class Queue { // queue of integers
public:
// initialize the queue to empty
Queue();
// returns TRUE if the queue is empty, else FALSE
Truth isempty();
// returns TRUE if queue is full, else FALSE
True isfull();
// deletes and returns value at head of queue
// precondition: !isempty()
int gethead();
// make x the new head of the queue
void puthead( int x);
// delete and return the last element in the queue
// precondition: !isempty()
int gettail();
// make x the last element in the queue
void puttail( int x);
private:
...
};