Jump to content

I wanted help in C++ (OOPs) project of mine....


Recommended Posts

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....

Link to comment
Share on other sites


  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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