Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
main.cpp
- Committer:
- floras
- Date:
- 2020-10-06
- Revision:
- 1:c32673cb0c2f
- Parent:
- 0:6a84376bbf45
File content as of revision 1:c32673cb0c2f:
#include "mbed.h" class MyClass { public: MyClass(double messwert) : _messwert(messwert) { } void status() { printf("%f\n", _messwert); } private: double _messwert; }; class MyClassA { public: MyClassA(int x, bool wahr) : _x(x), _wahr(wahr) {} int getx(void) { return _x; } bool getwahr(void) { return _wahr; } private: int _x; bool _wahr; }; MyClass myClass (0); MyClassA myClassA (6, 0); int main() { myClass.status(); printf("%d\n", myClassA.getx()); printf("%d\n", myClassA.getwahr()); wait_ms(100); }