Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <windows.h>
- #include <time.h>
- using namespace std;
- int main()
- {
- srand(time(NULL));
- cout << "1. Chrobot" << endl;
- cout << "2. Kubus" << endl;
- cout << "3. Bedla" << endl;
- cout << "4. Wilk" << endl;
- int pick;
- cin >> pick;
- switch(pick)
- {
- case 1:
- while(1){
- Sleep(500);
- cout << "Dziekuje ";
- }
- break;
- case 2:
- while(1){
- Sleep(500);
- cout << "Dzien dobry ";
- }
- break;
- case 3:
- int ocena;
- ocena = rand()%11;
- if(ocena == 8)
- cout << "niezle " << ocena << " pkt" << endl;
- else
- cout << "Panie kolego " << ocena << " pkt" << endl;
- break;
- case 4:
- string imie;
- cout << "Podaj imie: ";
- cin >> imie;
- if(imie == "jewheni")
- cout << "panie eugeniuszu" << endl;
- else
- cout << "Pan " << imie << endl;
- cout << "Prosze podac nazwe projektu: ";
- string projekt;
- cin >> projekt;
- cout << "e-" << projekt << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement