Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include "my_vector.h"
- using namespace std;
- using namespace my_std;
- int main() {
- my_vector v(10);
- cout << "Size: " << v.get_size() << endl;
- v.push_back(5);
- v.push_back(7);
- v.push_back(8);
- cout << "Size: " << v.get_size() << endl;
- cout << v[0] << " " << v[2] << endl;
- cout << v.pop() << endl;
- cout << "Size: " << v.get_size() << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment