Kiri3L

main.cpp

Nov 21st, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #include <iostream>
  2. #include "my_vector.h"
  3.  
  4. using namespace std;
  5. using namespace my_std;
  6.  
  7. int main() {
  8.  
  9. my_vector v(10);
  10. cout << "Size: " << v.get_size() << endl;
  11. v.push_back(5);
  12. v.push_back(7);
  13. v.push_back(8);
  14. cout << "Size: " << v.get_size() << endl;
  15. cout << v[0] << " " << v[2] << endl;
  16. cout << v.pop() << endl;
  17. cout << "Size: " << v.get_size() << endl;
  18. return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment