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.
Dependencies: 4DGL-uLCD-SE mbed SDFileSystem wave_player
stack.h
00001 #ifndef STACK_H 00002 #define STACK_H 00003 00004 #include "uLCD_4DGL.h" 00005 #include "food.h" 00006 #include <vector> 00007 using namespace std; 00008 00009 class Stack { 00010 public: 00011 Stack(int,uLCD_4DGL*); 00012 void draw(); 00013 void erase(); 00014 void move(int); 00015 void add(Food * ); 00016 int size(); 00017 void clear(); 00018 int top; 00019 int x; 00020 00021 private: 00022 bool isBad; 00023 vector<Food> stackOfFood; 00024 uLCD_4DGL * lcd; 00025 00026 }; 00027 00028 #endif
Generated on Fri Jul 22 2022 03:38:07 by
1.7.2