|
|
operator<< to be able to write something like: |
|
cout<<"$" << o.dollars << "." << o.cents;
ostream &output essentially tells that "output" is an ostream object, you can simply consider it as output == cout, so in line 22 is same as cout << "$" << o.dollars << "." << o.cents;istream& input, which basically means that input == cin, so you can use input >> something instead of cin >> something.