This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
3terminate called after throwing an instance of 'std::out_of_range'
what(): basic_string::at: __n (which is 0) >= this->size() (which is 0)
Well, yes. Though if you're not sure you could check with the size() function. Also that is exactly the information that the error message is giving you:
this->size() (which is 0)
There are lots of ways to do this. To continue with your present plan of attack, you might do this: