Problem

Write the C++ code for a function that prompts the user to enter a character and then st...

Write the C++ code for a function that prompts the user to enter a character and then stores the character in a char variable named response. The function should return the contents of the response variable. Name the function getCharacter. (The function will not have any actual arguments passed to it.) Also write an appropriate function prototype for the getCharacter function. In addition, write a statement that invokes the getCharacter function and assigns its return value to a char variable named custCode.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search