#include #include #include #include #include #include #include using namespace std; int main(int argc, char *argv[]) { string str = "one two three"; vector stringVec = {"one", "two", "three"}; deque intDeque = {1, 2, 3}; list floatList = {1.0, 2.0, 3.0}; forward_list doubleForwardList = {1.0, 2.0, 3.0}; //---------------------------------------------------------------- // Subscripting "errors"... //---------------------------------------------------------------- // array<> type array arrayArray = {1, 2, 3}; cout << "arrayArray[4] == " << arrayArray[4] << endl; int index; cout << "Enter integer index: "; cin >> index; cout << "arrayArray[" << index << "] == " << arrayArray[index] << endl; // vector<> type cout << "Evaluating stringVec[4]: " << endl; cout << "stringVec[4] == " << stringVec[4] << endl; cout << "Evaluating stringVec.at(4): " << endl; cout << "stringVec.at(4) == " << stringVec.at(4) << endl; return 0; }