If you have already removed a character (in char variable ch) from the input stream, you can apply a member function of cin to the variable ch to return it to the input stream. Which of these does this task?

a. cin.get(ch);
b. cin.put(ch);
c. cin.peek(ch);
d. cin.putback(ch);


d)
Explanation: cin.putback(arg) takes the value of the char type argument, arg, and returns to the input stream. It does not have to be the character that was got from the input, but there is a limit to the number of times you can putback a character onto the input stream.

Computer Science & Information Technology

You might also like to view...

Some accounts let you access the feeds from your web browser if they are using a common feeds folder; however, not all accounts allow for this.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Case-Based Critical Thinking QuestionsCase 15-1Tom is taking a class on computer graphics and how to use them. Tom has a TIFF file that is 950 KB. This file is too large, so he wants to make it smaller. In order to do this, Tom should ____.

A. go back and make the image less detailed B. save it in JPEG format with built-in compression C. there is no way to make file size smaller D. save it as a RAW file

Computer Science & Information Technology

After you have saved a selection, how do you load the selection to another file?

What will be an ideal response?

Computer Science & Information Technology

When you install a sound card, you should disable the motherboard _______

Fill in the blank(s) with correct word

Computer Science & Information Technology