Question: the code is in C++, thank you cin works with any data type, including char (character), as well as user defined objects such as string.

the code is in C++, thank you
cin works with any data type, including char (character), as well as user defined objects such as string. Recall that string is available through the string library and will hold a series of characters. create a char variable named ch and a string variable called name prompt the user to enter a character and then his/her name read the character into ch and the name into name echo the character back to the screen and greet the user by name
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
