Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.59 KB | None | 0 0
  1. #include <iostream.h>
  2. #include <math.h>
  3. #include <conio.h>
  4.  
  5. void meldung (char sprache, char* ausgabe);
  6.  
  7.  
  8. int main()
  9. {
  10. char lang;
  11. char* ausgabe = new char[6];
  12.     cout << "Please select your language (d=de , e=en):  " ;
  13.     cin >> lang;
  14. meldung (lang, ausgabe);
  15.  
  16. }
  17. void meldung (char sprache, char* ausgabe){
  18.      switch (sprache)
  19.      {
  20.      case 'd': ausgabe = "Hallo";
  21.      cout << "futznhobel" << endl;
  22.      break;
  23.      
  24.      case 'e': ausgabe = "Hello";
  25.      cout << "muff cabbage" << endl;
  26.      break;
  27.      
  28.      default: cout << "fuzenhobel";
  29.      }
  30.      return;
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement