Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // Created by k3l on 21.11.2019.
- //
- #ifndef VECTOR_MY_VECTOR_H
- #define VECTOR_MY_VECTOR_H
- namespace my_std{
- class my_vector {
- int size;
- int alloc;
- int *array;
- public:
- my_vector();
- my_vector(int n);
- my_vector(int n, int x);
- void push_back(int i);
- void resize(int new_size);
- int pop();
- int get_size();
- int& operator[](int index);
- ~my_vector();
- };
- }
- #endif //VECTOR_MY_VECTOR_H
Advertisement
Add Comment
Please, Sign In to add comment