#include #include using namespace std; int main() { string name; if(name.size() != 0) cout << "Hello " << name.at(0) << endl; else cout << "Uh Oh, You didn’t initialize me!" << endl; try { cout << "Hello " << name.at(0) << endl; } catch(out_of_range &e) { cout << "Uh Oh, You didn’t initialize me!" << endl; } }