Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ArrayWrapper(int *array, int size, int capacity=10)
- {
- int *_array = new int[capacity];
- try
- {
- for(int i=0; i<size; i++)
- {
- *_array[i] = *array[i];
- }
- }
- catch (ArrayWrapper E)
- {
- }
- delete [] array;
- array = _array;
- };
Add Comment
Please, Sign In to add comment