Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream.h>
- #include <math.h>
- #include <conio.h>
- void meldung (char sprache, char* ausgabe);
- int main()
- {
- char lang;
- char* ausgabe = new char[6];
- cout << "Please select your language (d=de , e=en): " ;
- cin >> lang;
- meldung (lang, ausgabe);
- }
- void meldung (char sprache, char* ausgabe){
- switch (sprache)
- {
- case 'd': ausgabe = "Hallo";
- cout << "futznhobel" << endl;
- break;
- case 'e': ausgabe = "Hello";
- cout << "muff cabbage" << endl;
- break;
- default: cout << "fuzenhobel";
- }
- return;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement