TINF_Library_Zahlen
Diff: Zahlen.h
- Revision:
- 0:c446bfdf3c55
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Zahlen.h Mon Jun 18 17:40:05 2018 +0000 @@ -0,0 +1,32 @@ +#include "mbed.h" +#ifndef ZAHLEN_H +#define ZAHLEN_H + +class Zahlen{ + private: // Memebervariable + int _zahl1; + int _zahl2; + int _erga; + int _ergd; + int _ergm; + int _ergs; + + public: + + void eingabe1(); + + void eingabe2(); + + void addieren() + { _erga =_zahl1+_zahl2; } + void dividieren() + { _ergd=_zahl1/_zahl2; } + void multiplizieren() + { _ergm=_zahl1*_zahl2; } + void subtrahieren() + { _ergs=_zahl1-_zahl2; } + + void ausgabe(); +}; + +#endif \ No newline at end of file