home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C++ Games Programming
/
CPPGAMES.ISO
/
thx
/
include
/
queue.h
< prev
next >
Wrap
C/C++ Source or Header
|
1995-05-08
|
355b
|
27 lines
// --------- queue.h
#ifndef QUEUE_H
#define QUEUE_H
const int QLEN = 50;
struct messageinfo {
int msg;
int data1;
int data2;
};
class Queue {
messageinfo a[QLEN];
int head,tail;
int inc(int);
public:
Queue();
void put(int,int,int);
void get(int*,int*,int*);
int isfull();
int isempty();
};
#endif