1 Uebung

Dependencies:   mbed

main.cpp

Committer:
rob117
Date:
2020-10-06
Revision:
1:851c54e0d307
Parent:
0:928e720c71da
Child:
2:3c3a6f0b11d2

File content as of revision 1:851c54e0d307:

#include "mbed.h"
 
class MyClass{
public:
    MyClass(double messwert) : _messwert(messwert) {
    }
    
void status() {
    printf("%f\n", _messwert);
    
}    
 
private:
    double _messwert;
};
 
 
MyClass myclass(0);
 
int main() {
  
  myclass.status();
  wait_ms(500);
  
}