Let me write the question out the way it is in the book. That may explain more what I am looking for:
Write the C++ code for a function that prompts the user to enter a character, and then stores the character in a char variable. The function should return the character entered by the user. the function will not have nay actual arguments passed to it. Name the function "getCharacter()."
the above wont work...we are using Microsoft Visual Studio and he wont accept using #include <conio.h>
I tried the code without that and the code wont work...so I need something else
You will need to press ENTER after you type your character. However, if someone types in more than one charater, the cin.ignore() function will kick it out of the input stream so it doesn't mess with your program later.