I am using the 3 files of code from the C++ book Chapter 11 and 11.8 Case Study:A Date Class with both cpp files and header file my questoion is how do i (add overloaded operator for "--" (pre and post), "-=", and ">>".
For ">>", user expected to type in the format of "mm/dd/yyyy".) Here is the code:
Richard_10
0
Newbie Poster
Recommended Answers
Jump to Postwhat is "--" ? do you mean "+=" since you also specified "-="?
Jump to PostThe operator
--
is just the decrement operator, i.e., the opposite of++
.
All 6 Replies
Richard_10
0
Newbie Poster
Richard_10
0
Newbie Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Richard_10
0
Newbie Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
mike_2000_17
2,669
21st Century Viking
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.