exercise 2

Dependencies:   mbed

Revision:
2:4ceb0547f2cf
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main2.cpp	Tue Oct 06 16:30:54 2020 +0000
@@ -0,0 +1,53 @@
+#include "mbed.h"
+
+void printStatus(void);
+
+class MyClassA
+{
+public:
+    MyClassA(int x, bool wahr): _x(x),_wahr(wahr)  {}
+
+
+
+
+
+    void printStatus()
+    {
+        printf("Status is now: %d,%d\n", _x,_wahr);
+    }
+    int getx(void)
+    {
+        return _x;
+    }
+private:
+    int _x;
+    bool _wahr;
+};
+
+MyClassA messwert(15,1);
+
+
+
+
+int main()
+{
+    while (1) {
+
+        messwert.printStatus();
+        wait_ms(500);
+
+
+    }
+}
+
+
+int main()
+{
+    while (1) {
+
+        messwert.printStatus();
+        wait_ms(500);
+
+
+    }
+}