I am very new to programming and trying to learn as much as I can. I am curious as to what cin char does exactly. When I input a word, the only thing outputted is the first letter of the word. Is this supposed to happen?
#include <iostream>
using namespace std;
int main()
{
char ch;
cin >> ch;
cout << "Thank you for entering " << ch << endl;
return 0;
}
I would like to output the whole word or phrase, but that does not seem to be happening. Thanks!