Also, if you don't know vectors yet, stop. Learn them before arrays.
Seriously. Vectors are for beginners. Vectors do what you need, how you expect it. Arrays are not for beginners. Learn vectors first, use vectors, and only use arrays if someone is holding a gun to your head and demanding you pretend you're writing C code.
I used to be a bit less harsh on this, but beginners just won't listen and they insist on learning intermediate level C code before beginner level C++.