Suppose you have a programmer-defined data type Data and want to overload the << operator to output your data type to the screen in the form cout << dataToPrint; and allow cascaded function calls. The first line of the function definition would be:

a. ostream &operator<<( ostream &output, const Data &dataToPrint )
b. ostream operator<<( ostream &output, const Data &dataToPrint )
c. ostream &operator<<( const Data &dataToPrint, ostream &output )
d. ostream operator<<( const Data &dataToPrint, ostream &output )


a. ostream &operator<<( ostream &output, const Data &dataToPrint )

Computer Science & Information Technology

You might also like to view...

Use the Short Text data type for fields that contain variable length data.

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

Computer Science & Information Technology

____________________ are rectangular areas you can position on a page to hold your content, including text and images.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

A ________ works together to perform a full-scale test covering all aspects of the network, as well as physical and system intrusion.

A. tiger team B. recovery team C. red team D. blue team

Computer Science & Information Technology

A common problem with the lecture method of training delivery is that the trainee's role is very passive.

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

Computer Science & Information Technology