...

/

Track with Vectors

Track with Vectors

Use vector to dynamically grow and manage lists

You’ve used fixed-size arrays. Now let’s upgrade to dynamic containers: vector. Vectors let you add, remove, and manage data on the fly.

Press + to interact
Vector with indices
Vector with indices

Goal

You’ll aim to:

  • Use vector to store flexible lists.

  • Add, ...