Solved How to reverse an string?
-
Hello guys, i got have a little problem when trying turn around reverse a string that don't me which is the correct form to do. E.G.
QString var = "variable";
"var reverse " = "elbairav"
It's the exactly thing that wanting to do. Thanks boys.
-
@ripley Hi,
QString s = "variable"; std::reverse(s.begin(), s.end()); qDebug() << s; //output "elbairav"
-
@Gojir4 thanks bro.