uebung2

Dependencies:   mbed

Revision:
0:61df0633020a
Child:
1:e07846393551
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Oct 06 16:19:40 2020 +0000
@@ -0,0 +1,32 @@
+#include "mbed.h"
+
+
+
+class MyClassA{
+public:
+    MyClassA(int x, bool wahr) : _x(x), _wahr(wahr)  {}
+    
+void printstatus(){
+    printf("x ist: %d\n", _x);
+    printf("bool ist: %d\n", _wahr);
+    
+}
+    int getx(void) {return _x;}
+private:    
+    int _x;
+    bool _wahr;
+    
+};
+
+MyClassA myclassA(5,1);
+
+
+int main()
+{while(1){
+    
+    myclassA.printstatus();
+    
+    wait_ms(500);
+   
+}
+}