Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. #include <iostream>
  2. #include <queue>
  3. using namespace std;
  4. int main()
  5. {
  6. int i;
  7. int ile;
  8. queue <string> kolejka;
  9. kolejka.push(" jechac do kempna");
  10. kolejka.push(" ogladac strimka");
  11. kolejka.push(" wniesc smieci");
  12.  
  13. cout<<"1.Dodaj \n";
  14. cout<<"2.Robienie zadan \n";
  15. cout<<"3.Zadania \n";
  16. cout<<"4.koniec \n";
  17. int kolejnosc;
  18. do{
  19.  
  20. cin>>kolejnosc;
  21. switch(kolejnosc)
  22. {
  23.  
  24. {
  25. case 1:
  26. {
  27. cout<<"podaj ilosc zadan";
  28.  
  29.  
  30.  
  31. }
  32. break;
  33.  
  34. case 2:
  35. {
  36. string first = kolejka.front();
  37. cout << "Zadanie zrobione:" << first << endl;
  38. kolejka.pop();
  39.  
  40. }
  41. break;
  42.  
  43. case 3:{
  44.  
  45. cout<<"1 jechac do kempna\n";
  46. cout<<"2 ogladac strimka\n";
  47. cout<<"3 wniesc smieci\n";
  48. }break;
  49. return 1;
  50. }
  51. }
  52. }while(kolejnosc!=4);
  53. return 0;
  54. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement