wiktortokumpel

main ccp

Mar 29th, 2022
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.34 KB | None | 0 0
  1. #include <iostream>
  2. #include "tablica.h"
  3. #include <cstdlib>
  4. #include <ctime>
  5. #include <algorithm>
  6.  
  7. using namespace std;
  8.  
  9. void sortuj(Tablica t)
  10. {
  11.     sort(t.poczatek(), t.koniec());
  12. }
  13.  
  14. int main()
  15. {
  16.     srand(time(NULL));
  17.     Tablica t1(10);
  18.     t1.los();
  19.     t1.wyswietl();
  20.     sortuj(t1);
  21.     t1.wyswietl();
  22.     return 0;
  23. }
  24.  
Advertisement
Add Comment
Please, Sign In to add comment