im new on this site and im taking c++ for video game design
and the assignment we're working on a program that asks you how many fav. games you have and what their names are
and it will output the names and number of games you entered
this is what i have so far
// number of games
cout << " Enter Number of Fav. games: ";
string Number;
cin >> Number;
int n = atoi(Number.c_str());
vector<string> GameList;
string x;
while (n > 0) {
Anyway, you would use a for loop for that. Look up std::vector's .size() member and it's operator [] (aka subscript operator) in this site's reference section.
It doesn't really matter. We don't care how you help him in class, but this is a forum, and in here, the way it works is that you don't post the answer. You post hints and tips in the right direction to the answer. If you already had the solution you could take the material you learned from it and direct the OP towards it.