home *** CD-ROM | disk | FTP | other *** search
/ C++ Games Programming / CPPGAMES.ISO / thx / include / queue.h < prev    next >
C/C++ Source or Header  |  1995-05-08  |  355b  |  27 lines

  1. // --------- queue.h
  2.  
  3. #ifndef  QUEUE_H
  4. #define  QUEUE_H
  5.  
  6. const int QLEN = 50;
  7.  
  8. struct messageinfo  {
  9.   int msg;
  10.   int data1;
  11.   int data2;
  12. };
  13.  
  14. class Queue  {
  15.   messageinfo a[QLEN];
  16.   int head,tail;
  17.   int inc(int);
  18. public:
  19.   Queue();
  20.   void put(int,int,int);
  21.   void get(int*,int*,int*);
  22.   int isfull();
  23.   int isempty();
  24. };
  25.  
  26. #endif
  27.