Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <stdlib.h>
- #include <time.h>
- using namespace std;
- int main(){
- cout<<"\\\\\\\\\\ KAMIEN PAPIER NOZYCE //////////\n"<<
- "PODAJ NUMER SYMBOLU:\n"<<
- "1)KAMIEN\n"<<
- "2)PAPIER\n"<<
- "3)NOZYCE\n";
- int wybor;
- int kamien=1, papier=2, nozyce=3;
- cin>>wybor;
- srand(time(NULL));
- int komputer = (rand() % 3) + 1;
- if (wybor==komputer)
- cout<<"remis";
- if wybor==kamien
- switch(komputer)
- {
- case papier:
- //jakiś kod
- break;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment