The _______ member function takes a single char value from the input file, without regard to whether it is whitespace.

a) newLine
b) get
c) put
d) getline
e) putline


b) a) is a function defined in the text to dump the rest of any input left on an input line (file or keyboard). c) put() writes the char argument out to the device (file or screen) connected to the stream. d) getline() comes in several versions. In the iostream and fstream member version, calling object is a stream. The function takes two or three arguments. The first is a C-string, the second is a number of characters to be fetched +1 for the null terminator, and the third is a “stop fetching when encountered” characters. e) is specious. There is no putline function. The standalone version takes two or three arguments. The first is an istream variable, the second is library string variable, the optional third argument is a “stop fetching when encountered” character.

Computer Science & Information Technology

You might also like to view...

Which of the following statements best describes a VPN?

A. It allows users to establish a secure connection over a public network. B. It filters incoming and outgoing traffics based on a set of rules. C. It is a specially configured network that sits between the public and the internal network. D. It translates the internal private IP addresses to a public IP address.

Computer Science & Information Technology

In JavaScript objects, a value cannot be assigned to a property.?

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

Computer Science & Information Technology

With the advent of ____, integrated circuits incorporating many transistors and electronic circuits on a single tiny silicon chip, allowed computers to be even smaller and more reliable than earlier computers.

A. second-generation computers B. third-generation computers C. fourth-generation computers D. fifth-generation computers

Computer Science & Information Technology

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

1.In a try block, the throw statement is always executed. 2. The catch block is a function. 3. The braces are not necessary on a try block. 4. The throw statement passes a value to the catch block. 5. The catch block is the group of statements that handle an exception.

Computer Science & Information Technology