Okay, so I know how to reverse the whole string of a vector,
[code]for_each(newLines.begin(), newLines.end(), [](std::string& s){ reverse(s.begin(), s.end()); });
copy(newLines.begin(), newLines.end(), std::ostream_iterator<std::string> (std::cout, "\n")); [/code]
But is there a way to only reverse the first 10 or so characters of a vector string? i.e.
sdjkfskjd sfdsdf sdjflkjsdjklfsdlkjflksdjfkls jklda sdfioss sloidfjosdf
I only want to reverse the "sdjkfskjd" and not the rest of the string?????