MeehoweCK

Untitled

Oct 22nd, 2020
2,029
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.39 KB | None | 0 0
  1. // main.cpp - tworzenie obiektowe
  2. #include <iostream>
  3. #include "tablica.hpp"
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9.     Tablica<int> tablica;
  10.     tablica.dodaj_element(1000);
  11.     tablica.dodaj_element(50);
  12.     tablica.dodaj_element(30);
  13.     tablica.dodaj_element(60);
  14.     cout << tablica[1] << endl;
  15.     tablica[2] = 100;
  16.     tablica.sortuj();
  17.     tablica.wypisz();
  18.  
  19.     return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment