1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
string item[10] {"", "", "", "", "", "", "", "", "", ""};
cout << "Enter the ten items that you bought at " << store
<< ". The first item is: " << item[1] << endl;
getline(cin, item[0]);
cout << "The second item is: " << endl;
getline(cin, item[1]);
cout << "The third item is: " << endl;
getline(cin, item[2]);
cout << "The fourth item is: " << endl;
getline(cin, item[3]);
cout << "The fifth item is: " << endl;
getline(cin, item[4]);
cout << "The sixth item is: " << endl;
getline(cin, item[5]);
cout << "The seventh item is: " << endl;
getline(cin, item[6]);
cout << "The eigth item is: " << endl;
getline(cin, item[7]);
cout << "The ninth item is: " << endl;
getline(cin, item[8]);
cout << "The tenth item is: " << endl;
getline(cin, item[9]);
|