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 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
d o... View full answer
Get step-by-step solutions from verified subject matter experts
