Hello I'm new to C++. I am learning from a book and I'm having trouble with copying and swapping strings. The code compiles okay but the .exe file wont run. instead it comes up with this in the command prompt..
terminate called after throwing an instance of 'std::length_error'
what(): basic_string::_S_create
This application has requested the run time to terminate it an unusual way.