Assume you have the following enumeration type:
enum AutoType {SEDAN, COUPE, OTHER}; Write a user-defined specialization of the GetData template (see Exercise 6) that accommodates the AutoType type. For input, the user should type the character s for sedan, c for coupe, and o (or anything else) otherwise.
Exercise 6
Write a function template for a void function, GetData, that receives a string through the parameter list, uses that string to prompt the user for input, reads a value from the keyboard, and returns that value (as a reference parameter) through the parameter list. The data type of the input value can be any type for which the >> operator is defined.
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.