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:
- Wizo
- Date:
- 2018-11-15
- Revision:
- 0:9aebea3abcf7
File content as of revision 0:9aebea3abcf7:
#include <stdio.h>
class Beva
{
public:
//Inlinemethode; Methodendefinition in der Klasse
void eingabe()
{
scanf("%i", &zahl1);
scanf("%i", &zahl2);
}
//Nur Funktionsprototyping; Methodendefinition ausserhalb der Klasse
void ausgabe();
private:
int zahl1;
int zahl2;
};
//Funktionsprototyping
//Klasse instanziieren
Beva mein;
int main() {
//Methodenaufruf
mein.eingabe();
mein.ausgabe();
//eingabe (str);
//ausgabe(str);
return 0;
}
//Methodendefintion
void Beva::ausgabe()
{
printf("Hello Bulme: %i \n", zahl1 + zahl2);
}