Guest User

Untitled

a guest
Oct 22nd, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | None | 0 0
  1.   ArrayWrapper(int *array, int size, int capacity=10)
  2.     {
  3.  
  4.         int *_array = new int[capacity];
  5.    
  6.         try
  7.         {
  8.             for(int i=0; i<size; i++)
  9.             {
  10.                 *_array[i] = *array[i];
  11.             }
  12.         }
  13.         catch (ArrayWrapper E)
  14.         {
  15.         }
  16.         delete [] array;
  17.         array = _array;
  18.     };
Add Comment
Please, Sign In to add comment