September 24th, 2003, 10:03 AM
Switching characters in a string
I am new to C++. I bought a book to learn C++.
How do you switch characters in a string?
For example in an input file,
I want to read all 4 rows of text, switch the characters in the left until it matches the text in the right.
I want the output to look like this and continue to read the next row of strings? I want to use the string library supplied by the STL.
usegro -> segrou -> egrous -> grouse
September 24th, 2003, 05:23 PM
Look around, there are already posts on this.