need program code

write a program using structures ti initialise name of first, middle, and last; age ; game ; and city of 5 players.
the program should do the following:
a) accept the name of players and display the game and address.
b)accept the name of game and display the name and age of the players who play the game......pls help me...i m stuck..!!!...:(
Using a structure and an array, you could build this:

1
2
3
4
5
6
7
8
struct Player {
	string first;
	string middle;
	string last;
	int age;
	string game;
	string city;
} player[5]


And then iterate through the array to fill in the information:

1
2
3
4
5
6
player[i].first = ?
player[i].middle = ?
player[i].last = ?
player[i].age = ?
player[i].game = ?
player[i].city = ?
Topic archived. No new replies allowed.