1 Uebung

Dependencies:   mbed

main.cpp

Committer:
rob117
Date:
2020-10-06
Revision:
3:dbd662e5f8f8
Parent:
2:3c3a6f0b11d2
Child:
4:6bea8ed92ad7

File content as of revision 3:dbd662e5f8f8:

#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);
   
}
}