#include #include using namespace std; int main() { string phrase{"Hello World!"}; for(size_t i = 0; i <= phrase.size(); ++i) { try { cout << i << " '" << phrase.at(i) << "'" << endl; } catch (...) { cout << endl; cout << "IN the exception handler" << endl; cout << i << " must be bad! " << endl; } } cout << "This line will always print out" << endl; return 0; }