0

How write a code of reverse word of the entered word

5th Jun 2018, 8:43 AM
Mirobidjon Ismonov
Mirobidjon Ismonov - avatar
2 Answers
5th Jun 2018, 9:00 AM
Ben
Ben - avatar
0
std::string s; cin >> s; std::reverse(s.begin(),s.end()) you need to import algorithm to use std::reverse
5th Jun 2018, 8:59 AM
Max
Max - avatar