0
How write a code of reverse word of the entered word
2 Answers
+ 2
Take a look here this might help
https://www.quora.com/How-can-I-reverse-a-string-or-a-sentence-in-C++
0
std::string s;
cin >> s;
std::reverse(s.begin(),s.end())
you need to import algorithm to use std::reverse