TINF_Library_Zahlen

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Zahlen.h Source File

Zahlen.h

00001 #include "mbed.h"
00002 #ifndef ZAHLEN_H
00003 #define ZAHLEN_H
00004 
00005 class Zahlen{
00006     private:        // Memebervariable
00007         int _zahl1;
00008         int _zahl2; 
00009         int _erga;
00010         int _ergd;
00011         int _ergm;
00012         int _ergs;
00013     
00014     public:
00015    
00016     void eingabe1(); 
00017 
00018     void eingabe2(); 
00019     
00020     void addieren()
00021     {    _erga =_zahl1+_zahl2;  }
00022     void dividieren()
00023     {   _ergd=_zahl1/_zahl2;    }
00024     void multiplizieren()
00025     {   _ergm=_zahl1*_zahl2;    }
00026     void subtrahieren()
00027     {   _ergs=_zahl1-_zahl2;    }
00028     
00029     void ausgabe();
00030 };
00031 
00032 #endif