Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In my C++ class we are working on this project. I did a lot of the project but I am not good with operator overloading
In my C++ class we are working on this project. I did a lot of the project but I am not good with operator overloading and pointers and need some help.
Functions I need help with:
myClock operator++();
//overload ++ operator as a member function. t++ will increase the seconds by 1.
int operator-(const myClock& t);
//overload - as a member function. t1-t2 returns the difference in seconds between t1 and t2
myClocklmp.cpp Problem 4 myClock.h* a x mainTest.cpp #ifndef MYC LOCK H #define MYCLOCK H #include iostream 2 using namespace std; //implement a class that mimics a clock. 24 hr clock, ?.e. from 00:00:00 to 23:59:59 9 10 ?class myClock friend ostream& operatorss (ostream&, myClock&); /loverload
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started