Advertisement
Guest User

Untitled

a guest
Nov 19th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. #include "StackModul.h"
  2. #include <iostream>
  3. #include <windows.h>
  4. #include <cstdlib>
  5. #include <time.h>
  6.  
  7. using namespace std;
  8. int main()
  9. {
  10. int d;
  11. int n;
  12. cout<<"Podaj liczbe losowych liczb do porownania: ";
  13. cin>>n;
  14. cout<<endl <<"Wylosowane liczby:"<<endl;
  15.  
  16. srand(time(0));
  17. int *tab;
  18. tab= new int[n];
  19. for(int i=0;i<n;i++){
  20.  
  21. tab[i]=rand()%10000+1;
  22. cout<<tab[i]<<", "<<endl;
  23.  
  24. }
  25. cout<<endl;
  26. push_m(n,tab[]);
  27.  
  28. for(int i=0;i<n;i++){
  29. cout<<tab[i]<<", "<<endl;
  30.  
  31. }
  32.  
  33. return 0;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement