Group PAG
/
PAG-CourseWork-NicksEdits
Minor fixes
Fork of Coursework by
Diff: Queue.h
- Revision:
- 43:4ddc392dd0cc
- Parent:
- 42:4e0a96b52e65
diff -r 4e0a96b52e65 -r 4ddc392dd0cc Queue.h --- a/Queue.h Wed May 03 13:30:38 2017 +0000 +++ b/Queue.h Thu May 04 12:55:16 2017 +0000 @@ -3,12 +3,14 @@ #include "Reading.h" class Queue{ - //variables + //variables + public: const int maxSize = 120; int front; int back; int count; - Reading storage[maxSize]; + bool isFull; + Reading *storage; //realisticly what we need:: @@ -17,15 +19,12 @@ //take value and put it in the right place //delete with argument //delete without argument - public: + + Queue(int i); Queue(); + void push(Reading r); void read(int nR); // where nR is the number to read, if REAL ALL is typed then the method will be called by something like queue.read(queue.count). void deleteRecords(int nD); //as above but nD is number to delete - void addRecord(Reading r); - - - + }; - - }; #endif \ No newline at end of file