Tina Dokic
/
TINF-ue2--06-10-2020
TINF-06-10-2020
Diff: main.cpp
- Revision:
- 0:aaf0e1fabb9c
diff -r 000000000000 -r aaf0e1fabb9c main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Oct 06 16:51:48 2020 +0000 @@ -0,0 +1,41 @@ +#include "mbed.h" + + + +class MyClassA { +public: + MyClassA(int x, bool wahr) : _x(x), _wahr(wahr) + { + + } + + void status() + { + printf("%d,%d\n",_x, _wahr); + } + int getx(void) + { + return _x; + + } +private: + int _x; + bool _wahr; + +}; + +MyClassA myClass(5,1); + +int main() +{ + + while(1) + { + myClass.status(); + wait_ms(500); + } + + + + +}