Advertisement
marcopolo1613

Untitled

Oct 6th, 2012
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | None | 0 0
  1. Date& operator++(Date& d)
  2. {
  3.     //add 1 to d  //tomorrow, unless we were at the end of the month
  4.     //if is_date is false
  5.     //            //need to change to first of next month
  6.     //  set d to 1
  7.     //  if m is December
  8.     //            //need to change to next year too      
  9.     //    set m to January
  10.     //    increment y
  11.     //  else
  12.     //    increment m
  13.     //return *this;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement