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. else
  21. cout << "ohneGPS" << endl;}
  22. }
  23. return 0;
  24. }

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