I am part of a team of three moderate-aptitude programmers, and we are currently attempting to write a program in C++ to embody our new encryption algorithm. However, we have encountered an error which indicates that we are surpassing the length of a string, at some point. I have tried debugging this, myself, but I have had no luck. It's in the jumble() function, though ...
Anyway, here's a paste of our sourcecode with a temporary main() function: http://pastebin.com/GvvYAsKg
It compiles fine, but upon running, we get the following error:
terminate called after throwing an instance of 'std::out_of_range'
what(): basic_string::substr Aborted