Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- #include <ctime>
- using namespace std;
- void recznie(int n,int a[])
- {
- int l;
- cout << "Podaj liczby ciagu:";
- for (int i = 0; i < n; i++)
- {
- cin >> l;
- a[i] = l;
- // cout << a[i] << " ";
- }
- }
- (...)
- const int N=1000;
- int main()
- {
- int wybor, n, a[N];
- cout<<"podaj wielkosc ciagu: ";
- cin>>n;
- cout<<"Jak wygenerowac ciag??"<<endl<<"1: Recznie wprowadzane wyrazy ciagu"<<endl<<"2: Losowanie danej ilosc wyrazow ciagu"<<endl<<"wybor: ";
- cin>>wybor;
- /* int i,najwiekszy,najmniejszy,a[n],ww,wn;
- int poczatek,koniec; */ // <-na chuj ten kaktus? xD
- switch(wybor)
- {
- case 1:
- {
- recznie(n, a);
- break;
- }
- case 2:
- {
- losowo(a,n);
- break;
- }
- (...)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement