vnl5486 Posted February 23, 2006 Share Posted February 23, 2006 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..... 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 More sharing options...
vnl5486 Posted February 24, 2006 Author Share Posted February 24, 2006 *bump*Guys please help me... Link to comment Share on other sites More sharing options...
phkninja Posted April 13, 2006 Share Posted April 13, 2006 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now