...
Code Block |
---|
string bs("01234567"); try { size_t i = f(); bs[.at(i]) = '\0'; } catch (...) { cerr << "Index out of range" << endl; } |
...
...
Code Block |
---|
string bs("01234567"); try { size_t i = f(); bs[.at(i]) = '\0'; } catch (...) { cerr << "Index out of range" << endl; } |
...