Advertisement
Guest User

Untitled

a guest
Dec 4th, 2012
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. // Hauptprogramm
  6. //
  7. int main ()
  8. {
  9. char chAuswahl;
  10.  
  11. cout << "Starten (s), beenden (b)";
  12. cin >> chAuswahl;
  13.  
  14. switch (chAuswahl)
  15. {
  16. case ('s'):
  17. {
  18. cout << "test test" << endl;
  19. } break;
  20.  
  21. case ('b'):
  22. {
  23. cout << "test test" << endl;
  24. } break;
  25.  
  26. default:
  27. {
  28. cout << "Falsche Eingabe" << endl;
  29. }
  30. }
  31.  
  32. cout << "laber" << endl;
  33.  
  34. return 0;
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement