Filip Putz
/
Bertl_picBeeper
Beeper Aufheben.
main.cpp@0:3b725630f967, 2015-04-23 (annotated)
- Committer:
- Putzi
- Date:
- Thu Apr 23 12:07:54 2015 +0000
- Revision:
- 0:3b725630f967
F?hrt 3 Mal bis er einen Beeper aufhebt, oder h?lt nach dem dritten Mal an.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Putzi | 0:3b725630f967 | 1 | #include "mbed.h" |
Putzi | 0:3b725630f967 | 2 | #include "ur_Bertl.h" |
Putzi | 0:3b725630f967 | 3 | #include "const.h" |
Putzi | 0:3b725630f967 | 4 | |
Putzi | 0:3b725630f967 | 5 | int main() |
Putzi | 0:3b725630f967 | 6 | { |
Putzi | 0:3b725630f967 | 7 | ur_Bertl karel; |
Putzi | 0:3b725630f967 | 8 | |
Putzi | 0:3b725630f967 | 9 | if ( !karel.NextToABeeper()) |
Putzi | 0:3b725630f967 | 10 | karel.Move(); |
Putzi | 0:3b725630f967 | 11 | if ( !karel.NextToABeeper()) |
Putzi | 0:3b725630f967 | 12 | karel.Move(); |
Putzi | 0:3b725630f967 | 13 | if ( !karel.NextToABeeper()) |
Putzi | 0:3b725630f967 | 14 | karel.Move(); |
Putzi | 0:3b725630f967 | 15 | karel.PickBeeper(); |
Putzi | 0:3b725630f967 | 16 | |
Putzi | 0:3b725630f967 | 17 | } |