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

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