// // using parallel arrays // #include using namespace std; const int MAX = 50; int main() { string names[MAX]; int scores[MAX]; int size = 0; // # of records getline(cin, names[size]); // read first cin >> scores[size]; while( cin ) { // processing cout << "Read: " << names[size] << "\t" << scores[size] << "\n\n"; size ++; cin.ignore(100, '\n'); getline(cin, names[size]); // read the next cin >> scores[size]; } return 0; }