Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

...