1. #include
  2. <iostream>
  3. using
  4. namespace
  5. std;
  6. int
  7. main () {
  8. bool
  9. winter =
  10. false;
  11. char
  12. auswahl, typ;
  13. cin >> auswahl >> typ;
  14. switch(auswahl) {
  15. case
  16. ’M’:
  17. cout << "Motor" << flush;
  18. case
  19. ’S’:
  20. cout << "Segel" << flush;
  21. case
  22. ’B’:
  23. cout << "Boot" << flush;
  24. default:
  25. if(winter)
  26. if(typ == ’S’)
  27. cout << "mitGPS" << endl;
  28. else
  29. cout << "ohneGPS" << endl;
  30. }
  31. return
  32. 0;
  33. }

goto line:
Compare with:
text copy window edit this code post new code