Aufgabe Wiederholungsanweisungen

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
fritzhausmann
Date:
Thu Apr 23 12:49:21 2015 +0000
Commit message:
Aufgabe Wiederholungsanweisungen

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
ur_Bertl.lib Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Apr 23 12:49:21 2015 +0000
@@ -0,0 +1,31 @@
+#include "ur_Bertl.h"
+#include "mbed.h"
+#include "const.h"
+
+class Wiederholungsanweisungen_Bertl : public ur_Bertl
+{
+    public:
+    void ClearAllBeepersToTheWall();
+};
+
+void Wiederholungsanweisungen_Bertl :: ClearAllBeepersToTheWall()
+{
+    int x = 0;
+    while(FrontIsClear())
+    {
+        Move();
+            if(NextToABeeper())
+            {
+                PickBeeper();
+                x++;
+                NibbleLeds(x);
+            }
+    }
+}
+
+int main()
+{
+    Wiederholungsanweisungen_Bertl karel;
+    
+    karel.ClearAllBeepersToTheWall();
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Apr 23 12:49:21 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/433970e64889
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ur_Bertl.lib	Thu Apr 23 12:49:21 2015 +0000
@@ -0,0 +1,1 @@
+http://developer.mbed.org/teams/BERTL_CHEL_18/code/ur_Bertl/#07e55b300ff1