It looks like you forgot to increment index1. You might want to use a for loop instead to make it more obvious.
It looks like you forgot to increment index1. You might want to use a for loop instead to make it more obvious.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)