...
Code Block |
---|
string bs("01234567"); try { for (int i = 0; i < 100i<100; i++) { bs.at(i) = '\0'; } } catch (...) { cerr << "Index out of range" << endl; } |
...
...
Code Block |
---|
string bs("01234567"); try { for (int i = 0; i < 100i<100; i++) { bs.at(i) = '\0'; } } catch (...) { cerr << "Index out of range" << endl; } |
...