Date test?? help about this C++ program

Apr 16, 2013 at 1:32pm
Hi......
Please help me about this program....... I am not understanding this one....

A) Write a c++ program that tests whether one date comes before another. The dates
are stored as integers representing the month, day, and year. The variables for the two
dates are called month1,day1,year1,moth2,day2,year2. The statement should
output an appropriate message depending on the outcome of the test. For example:
12/21/01 comes before 1/27/05
or
7/14/04 dose not comes before 7/14/04

B) change the above code that you wrote for part (A) so that when the first date dose not come before 2nd, it sets the first date equal to the 2nd date in addition to printing the message.do not write complete code,simply write statments which are to be changed.....

Thanks....... :)



 
  http://my.safaribooksonline.com/book/programming/cplusplus/9780763771515/conditions-logical-expressions-and-selection-control-structures/programming_warm-up_exercises-id5 
Apr 16, 2013 at 4:32pm
Please help me.... :(
Apr 16, 2013 at 4:36pm
What have you written so far? What are you stuck on?
Apr 16, 2013 at 7:17pm
I have Write code...........Thank you L B for your reply
Topic archived. No new replies allowed.