Why doesn't this program prompt the user to enter a letter and display it?
I keep getting:Code:#include <iostream> using namespace std; int main() { char hold = 'J'; cout << "enter character: "; cin >> hold; cout << "after cin" << endl; cout << hold << endl; cout << "end of program"<<endl; return 0; }
enter character: after cin
7
end of program