Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include "tablica.h"
- #include <cstdlib>
- #include <ctime>
- #include <algorithm>
- using namespace std;
- void sortuj(Tablica t)
- {
- sort(t.poczatek(), t.koniec());
- }
- int main()
- {
- srand(time(NULL));
- Tablica t1(10);
- t1.los();
- t1.wyswietl();
- sortuj(t1);
- t1.wyswietl();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment