An alternative would be to use getch() (unstandard), from conio.h. there are lots of examples onthe boards, search for it if you're interested. This doesn't require the user to press return whenever they enter a key. However, there are bad things about it, mainly it being non-standard.
do not be worried! There is an alternative! Arrays of characters, or std::string 's.
holds info for a number of letters, instead of the char letter; that you would have had (notice the added s).
Code:
cin >> Letters; // Careful not to overflow
for ( int i=strlen( Letters ); i>0; i-- ) cout<< Letters[i];
prints it in reverse. I prefer std::string though!
Code:
#include <iostream>
#include <string>
int main( void )
{
std::string MyStdString;
std::cout<< "Enter a string: ";
std::cin >> MyStdString;
for ( int i=0; i<MyStdString.size(); i++ ) std::cout<< MyStdString[i]; // Right order
std::cout<< '\n';
for ( int i=MyStdString.end(); i>=myStdString.begin(); i-- ) std::cout<< MyStdString[i]; // reverse order
return 0;
}