Advertisement
tei123

cock chuj

Apr 25th, 2016
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. #include <cstdlib>
  2. #include <iostream>
  3. #include <conio.h>
  4. #include <time.h>
  5.  
  6. using namespace std;
  7.  
  8. int main(int argc, char *argv[])
  9. {
  10. int a;
  11. char b;
  12. char *wsk1;
  13. int *wsk;
  14. wsk = &a;
  15. wsk1 = &b;
  16. cin>>*wsk;
  17. cin>>*wsk1;
  18.  
  19. cout << *wsk+2<<endl;
  20. cout << char(*wsk1+2)<<endl;
  21. cout << wsk<<endl;
  22. cout << wsk1<<endl;
  23. int *wsk2;
  24. int c;
  25. wsk2 = &c;
  26. srand(time(NULL));
  27. *wsk2 = rand()%11;
  28. cout<< *wsk2<<endl;
  29. if (*wsk==*wsk2)
  30. cout << "takie same"<<endl;
  31. else cout << "sa w lesie "<<endl;
  32.  
  33.  
  34. int tab[10];
  35. for(int i=0;i<=9;i++)
  36. tab[i] = rand()%101;
  37.  
  38.  
  39.  
  40. cout<<tab[0]<<endl<<tab[5]<<" "<<tab[4]<<endl<<tab\
  41.  
  42.  
  43.  
  44.  
  45. system("PAUSE");
  46. return EXIT_SUCCESS;
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement