Tina Dokic
/
TINF-ue2--06-10-2020
TINF-06-10-2020
main.cpp
- Committer:
- tina_dokic
- Date:
- 2020-10-06
- Revision:
- 0:aaf0e1fabb9c
File content as of revision 0:aaf0e1fabb9c:
#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); } }