Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdlib>
- #include <iostream>
- #include <conio.h>
- #include <time.h>
- using namespace std;
- int main(int argc, char *argv[])
- {
- int a;
- char b;
- char *wsk1;
- int *wsk;
- wsk = &a;
- wsk1 = &b;
- cin>>*wsk;
- cin>>*wsk1;
- cout << *wsk+2<<endl;
- cout << char(*wsk1+2)<<endl;
- cout << wsk<<endl;
- cout << wsk1<<endl;
- int *wsk2;
- int c;
- wsk2 = &c;
- srand(time(NULL));
- *wsk2 = rand()%11;
- cout<< *wsk2<<endl;
- if (*wsk==*wsk2)
- cout << "takie same"<<endl;
- else cout << "sa w lesie "<<endl;
- int tab[10];
- for(int i=0;i<=9;i++)
- tab[i] = rand()%101;
- cout<<tab[0]<<endl<<tab[5]<<" "<<tab[4]<<endl<<tab\
- system("PAUSE");
- return EXIT_SUCCESS;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement