SHARE
TWEET

Untitled




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;}
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.