CString is a class in the MFC (Microsoft Foundation Classes) package library that represents a variable-length string of characters. The MakeReverse() function of the CString class reverses the order of the characters in the string.
Examples: 1.
CString str = "hello"; str.MakeReverse(); // str is now "olleh"
2.
CString str = "racecar"; str.MakeReverse(); // str is now "racecar"
3.
CString str = "12345"; str.MakeReverse(); // str is now "54321"
The package library used in the above examples is MFC (Microsoft Foundation Classes).
C++ (Cpp) CString::MakeReverse - 17 examples found. These are the top rated real world C++ (Cpp) examples of CString::MakeReverse extracted from open source projects. You can rate examples to help us improve the quality of examples.