![](/media/cache/profiles/c3d4543d921d3fc90cabc2c864c68276.jpg.50x50_q85.jpg)
exercises
cook.h@0:ff7b10a0e08f, 2015-08-28 (annotated)
- Committer:
- Jamess
- Date:
- Fri Aug 28 18:45:26 2015 +0000
- Revision:
- 0:ff7b10a0e08f
Trying to learn;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Jamess | 0:ff7b10a0e08f | 1 | #ifndef COOK_H |
Jamess | 0:ff7b10a0e08f | 2 | #define COOK_H |
Jamess | 0:ff7b10a0e08f | 3 | |
Jamess | 0:ff7b10a0e08f | 4 | #include "mbed.h" |
Jamess | 0:ff7b10a0e08f | 5 | #include "fruits.h" |
Jamess | 0:ff7b10a0e08f | 6 | |
Jamess | 0:ff7b10a0e08f | 7 | class cook{ |
Jamess | 0:ff7b10a0e08f | 8 | |
Jamess | 0:ff7b10a0e08f | 9 | private: |
Jamess | 0:ff7b10a0e08f | 10 | |
Jamess | 0:ff7b10a0e08f | 11 | uint32_t howWellCooks; |
Jamess | 0:ff7b10a0e08f | 12 | /* |
Jamess | 0:ff7b10a0e08f | 13 | * A scale to know how well does the cook cooks |
Jamess | 0:ff7b10a0e08f | 14 | * 0 -> Doesnt cook at all |
Jamess | 0:ff7b10a0e08f | 15 | * ... |
Jamess | 0:ff7b10a0e08f | 16 | * 3 -> Cooks edible food |
Jamess | 0:ff7b10a0e08f | 17 | * ... |
Jamess | 0:ff7b10a0e08f | 18 | * 5 -> Me |
Jamess | 0:ff7b10a0e08f | 19 | * ... |
Jamess | 0:ff7b10a0e08f | 20 | * 10-> Master Chef |
Jamess | 0:ff7b10a0e08f | 21 | */ |
Jamess | 0:ff7b10a0e08f | 22 | |
Jamess | 0:ff7b10a0e08f | 23 | |
Jamess | 0:ff7b10a0e08f | 24 | public: |
Jamess | 0:ff7b10a0e08f | 25 | |
Jamess | 0:ff7b10a0e08f | 26 | uint32_t getHowWellCooks(void); |
Jamess | 0:ff7b10a0e08f | 27 | /* |
Jamess | 0:ff7b10a0e08f | 28 | * Returns howWellCooks |
Jamess | 0:ff7b10a0e08f | 29 | */ |
Jamess | 0:ff7b10a0e08f | 30 | void setHowWellCooks(uint32_t); |
Jamess | 0:ff7b10a0e08f | 31 | /* |
Jamess | 0:ff7b10a0e08f | 32 | * To improved or worst the cooker skill |
Jamess | 0:ff7b10a0e08f | 33 | */ |
Jamess | 0:ff7b10a0e08f | 34 | void makeBanana(Serial* ,fruits* fruit[]); |
Jamess | 0:ff7b10a0e08f | 35 | /* |
Jamess | 0:ff7b10a0e08f | 36 | * A test to see if I can pass the banana array to a function |
Jamess | 0:ff7b10a0e08f | 37 | */ |
Jamess | 0:ff7b10a0e08f | 38 | |
Jamess | 0:ff7b10a0e08f | 39 | }; |
Jamess | 0:ff7b10a0e08f | 40 | |
Jamess | 0:ff7b10a0e08f | 41 | |
Jamess | 0:ff7b10a0e08f | 42 | #endif |