Jump to content

Recommended Posts

Posted

The Q goes this way....

Write a C++ program to create a class called DATE. Accept two valid dates in the form dd/mm/yy. Implement the following operations by overloading the operators + and -. After every operation display the results by overloading the operator >>.

i : no_of_days=d1-d2; where d1 and d2 are DATE objects, d1>=d2 and no._of_days is an integer.

ii: d2=d1+no_of_days; where d1 is a DATE object and no_of_days is an integer.

Please guys I wanted the most effecient logic and if possible a code..... :thumbup

I have to submit it by Monday...... so how about brushing up the dust of the C++ skills....

Thanks a lot guys....


  • 1 month later...
Posted

Know its a bit late now, but did you ever solve the problem. To me it looks simple enough, and if you are still requiring an answer let me know.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...