#include #include #include #include #include #include #include using namespace std; //---------------------------------------------------------------- // Subscripting "errors"... //---------------------------------------------------------------- int main(int argc, char *argv[]) { // 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 vector stringVec = {"one", "two", "three"}; cout << "Evaluating stringVec[-1]: " << endl; cout << "stringVec[-1] == " << stringVec[-1] << endl; cout << "Evaluating stringVec.at(-1): " << endl; cout << "stringVec.at(-1) == " << stringVec.at(-1) << endl; return 0; }