fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int liczba;
  6. cout << "1 - dupa, 2 - ferdka" << endl;
  7. cout <<"Wybuerz (liczba): " << endl;
  8. cin >> liczba;
  9. liczba = 3;
  10.  
  11. switch(liczba)
  12. {
  13. case 1:
  14. cout << "dupa" << endl;
  15. break;
  16. case 2:
  17. cout<<"ferdka";
  18. break;
  19. default:
  20. cout<<"nie wybrano"<<endl;
  21. break;
  22. return 0;
  23. }
  24. system("PAUSE");
  25. return 0;
  26. }
Success #stdin #stdout #stderr 0s 15240KB
stdin
Standard input is empty
stdout
1 - dupa, 2 - ferdka
Wybuerz (liczba): 
nie wybrano
stderr
sh: 1: PAUSE: not found