unlimited input from user

I am having trouble phrasing this but here goes. How do I make a new variable every time I need one within the program? Here is a example say a user wants to enter names of people, but I don't know how many , so they could enter 1 or 9000, I need a array that can hold all of them, but I don't know how many they will enter so I need a variable that can hold any amount.

hopefully you can understand what I am getting at and thanks :D
Please see Dynamic memory allocation and/or vector stuff.
Topic archived. No new replies allowed.