![](/media/cache/profiles/c3d4543d921d3fc90cabc2c864c68276.jpg.50x50_q85.jpg)
exercises
cook.cpp@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 | #include "cook.h" |
Jamess | 0:ff7b10a0e08f | 2 | |
Jamess | 0:ff7b10a0e08f | 3 | uint32_t cook::getHowWellCooks(void){ |
Jamess | 0:ff7b10a0e08f | 4 | |
Jamess | 0:ff7b10a0e08f | 5 | return howWellCooks; |
Jamess | 0:ff7b10a0e08f | 6 | |
Jamess | 0:ff7b10a0e08f | 7 | } |
Jamess | 0:ff7b10a0e08f | 8 | |
Jamess | 0:ff7b10a0e08f | 9 | void cook::setHowWellCooks(uint32_t newSkill){ |
Jamess | 0:ff7b10a0e08f | 10 | |
Jamess | 0:ff7b10a0e08f | 11 | howWellCooks = newSkill; |
Jamess | 0:ff7b10a0e08f | 12 | |
Jamess | 0:ff7b10a0e08f | 13 | } |
Jamess | 0:ff7b10a0e08f | 14 | |
Jamess | 0:ff7b10a0e08f | 15 | void cook::makeBanana(Serial* serialPort, fruits* something[]){ |
Jamess | 0:ff7b10a0e08f | 16 | |
Jamess | 0:ff7b10a0e08f | 17 | for(uint32_t i = 0;i<10;i++){ |
Jamess | 0:ff7b10a0e08f | 18 | |
Jamess | 0:ff7b10a0e08f | 19 | serialPort->printf("the number of bananas %d",something[i]->getWeight()); |
Jamess | 0:ff7b10a0e08f | 20 | wait(0.1); |
Jamess | 0:ff7b10a0e08f | 21 | |
Jamess | 0:ff7b10a0e08f | 22 | } |
Jamess | 0:ff7b10a0e08f | 23 | } |