TwITe

Untitled

Jul 15th, 2017
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.19 KB | None | 0 0
  1. void add_element(const int& element){
  2.     int* newBuffer;
  3.     {
  4.         if (capacity == newSize) {
  5.             int *newBuffer = mem();
  6.         }
  7.         buffer = add(element, newBuffer);
  8.         capacity = capacity + 1;
  9.     }
  10. }
Add Comment
Please, Sign In to add comment