Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of Coursework by
MyQueue.h
00001 #ifndef Queue_H 00002 #define Queue_H 00003 #include "Reading.h" 00004 00005 class MyQueue{ 00006 //variables 00007 public: 00008 int maxSize; 00009 int front; 00010 int back; 00011 int count; 00012 bool isFull; 00013 Reading *storage; 00014 00015 00016 //realisticly what we need:: 00017 //read values taking argument n 00018 //read values taking no argument 00019 //take value and put it in the right place 00020 //delete with argument 00021 //delete without argument 00022 00023 MyQueue(); 00024 void push(Reading r); 00025 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). 00026 void deleteRecords(int nD); //as above but nD is number to delete 00027 00028 }; 00029 #endif
Generated on Tue Jul 12 2022 21:22:38 by
1.7.2
