since you have the names in an array and the scores in another array you can use a loop to do that, and add the code at about line 15 in your original program.
for(int i = 0; i < 3; i++)
{
cout << names[i] << " Score: ";
cin >> score[i];
cin.ignore(); // ignore '\n' left in the keyboard buffer
}
Last edited by Ancient Dragon; Sep 18th, 2007 at 11:16 pm.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Offline 21,953 posts
since Aug 2005