Home > Back-end >  O great god"
O great god"

Time:10-09

}
Input in the main three objects, the three objects were common year on February 28, leap year on February 28, on December 31 of the other.
Then the three objects are executed from 1 operation,
And output after add the results of the execution.
Assume that the input data are correct.
Write a friend function & gt;> And & lt; CodePudding user response:

Implementation date addition (+ +) arithmetic operations,
The date format string parsing and output

CodePudding user response:

1, define an object, that object can deal with date,
2, to the object, through the overload operators & lt; <> Complete the data input and output, by overloading + + completion date + 1,
3, write a test case, test & lt; <> + + operation,
  • Related