Yahoo Answers is shutting down on 4 May 2021 (Eastern Time) and the Yahoo Answers website is now in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Anonymous
Anonymous asked in Computers & InternetInternetGoogle · 1 week ago

qsort function?

I was told to overload the operator << for the data struct.

This operator prints the given date object in this format: yyyy-mm-dd.

I have completely no idea what to do?

Attachment image

1 Answer

Relevance
  • Anonymous
    1 week ago
    Favourite answer

    return osObject <<myDate.day << '/' <<myDate.month << '/' <<myDate.year;

Still have questions? Get answers by asking now.