Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <queue>
- using namespace std;
- int main()
- {
- int i;
- int ile;
- queue <string> kolejka;
- kolejka.push(" jechac do kempna");
- kolejka.push(" ogladac strimka");
- kolejka.push(" wniesc smieci");
- cout<<"1.Dodaj \n";
- cout<<"2.Robienie zadan \n";
- cout<<"3.Zadania \n";
- cout<<"4.koniec \n";
- int kolejnosc;
- do{
- cin>>kolejnosc;
- switch(kolejnosc)
- {
- {
- case 1:
- {
- cout<<"podaj ilosc zadan";
- }
- break;
- case 2:
- {
- string first = kolejka.front();
- cout << "Zadanie zrobione:" << first << endl;
- kolejka.pop();
- }
- break;
- case 3:{
- cout<<"1 jechac do kempna\n";
- cout<<"2 ogladac strimka\n";
- cout<<"3 wniesc smieci\n";
- }break;
- return 1;
- }
- }
- }while(kolejnosc!=4);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement