How do i reverse an inputted string but the last character of the string stays the same, say, inputted : "Hello12345" will return : "4321olleH5". Using cpp code.
string is a type. it wraps the old char array / char * in a class and modernizes all the hands-on stuff into a safer, more OOP approach with handy stuff like assignment operators that were lacking before.
focus on learning this and ignore char* style strings. If you need to deal with legacy code that uses char*, you can study it later once you have a better understanding of everything else.