Commit 341f8685 by Patryk Czarnik

Metoda size - użycie

parent ace58fc5
......@@ -4,6 +4,7 @@
int main() {
std::cout << "Początek programu\n";
Wektor w;
std::cout <<"size: " << w.size() << '\n';
w.push_back(10);
w.push_back(11);
w.push_back(12);
......@@ -11,6 +12,7 @@ int main() {
std::cout << "Element nr 2: " << w.get(2) << '\n';
w.set(2, 222);
std::cout << "Element nr 2: " << w.get(2) << '\n';
std::cout <<"size: " << w.size() << '\n';
std::cout << '\n';
std::cout << "Koniec programu\n";
......
......@@ -15,6 +15,8 @@ public:
~Wektor();
int size();
/** Dodanie nowego elementu na końcu. */
void push_back(int e);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment