Question: Suppose you have a programmer-defined data type Data and want to overload the < < operator to output your data type to the screen

Suppose you have a programmer-defined data type Data and want to overload 

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: Select one: O a. ostream &operator>>( ostream &output, Data &dataToPrint) O b. ostream operator

Step by Step Solution

3.46 Rating (162 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

d o... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!