Ahhh... boundary checking. It's not *just* a nice idea, huh?
Should've really thought to check that a bit more stringently on my own... sorry. :(
But thank you for the help!
Type: Posts; User: nateDC
Ahhh... boundary checking. It's not *just* a nice idea, huh?
Should've really thought to check that a bit more stringently on my own... sorry. :(
But thank you for the help!
Sorry, new here, and just thought I'd best follow forum guidelines 'till I knew better.
At any rate, the *entire* program is below, but I don't really think the rest of the code is relevant --...
compiles fine using gcc - segfaults here:
while ( lower <= length ) {
upper = s1.find( s2, lower ); // location of space
word.assign( s1, lower, (upper -...