SHARE
TWEET

Untitled

a guest Nov 19th, 2019 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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;}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top