Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "StackModul.h"
- #include <iostream>
- #include <windows.h>
- #include <cstdlib>
- #include <time.h>
- using namespace std;
- int main()
- {
- int d;
- int n;
- cout<<"Podaj liczbe losowych liczb do porownania: ";
- cin>>n;
- cout<<endl <<"Wylosowane liczby:"<<endl;
- srand(time(0));
- int *tab;
- tab= new int[n];
- for(int i=0;i<n;i++){
- tab[i]=rand()%10000+1;
- cout<<tab[i]<<", "<<endl;
- }
- cout<<endl;
- push_m(n,tab[]);
- for(int i=0;i<n;i++){
- cout<<tab[i]<<", "<<endl;
- }
- return 0;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement