On PHP, you can add more elements to your array with different methods. My preferred method is:

PHP Code:
person[1] = "James";
person[2] = "Andy";

person[] = "Nick"//Notice there is no number inside the brackets. That's how I add elements to my arrays on PHP. 
Can I do something similar with C++? Or how can I add more elements to my arrays?