// z2.11-vectors // #include #include using namespace std; int main() { const int NUM_VALS = 8; // Number of elements in vector vector userVals(NUM_VALS); // User values unsigned int i; // Loop index cout << "Enter " << NUM_VALS << " integer values..." << endl; for (i = 0; i < userVals.size(); ++i) { // cout << "Value: "; cin >> userVals.at(i); } cout << "You entered: "; for (i = 0; i < userVals.size(); ++i) { cout << userVals.at(i) << " "; } cout << endl; return 0; }