[C++] Vectors

binh12A3
Oct 31, 2021

My name is vector. I’m a dynamic array, memory leak killer, and a stack holder…😎😎

  • Vector could be used as a dynamic array safe and sound.
  • With vector, we don’t need to do a Dynamically allocating (i.e: new), and free the memory (i.e : delete). It handles automatically.
  • We can resize a Dynamically allocating array easily with vector
  • Vector could be used as a stack

--

--