Ok. I've got this funky program that I'm suppoesd to modify for my c++ class. It's WAY beyond me... The class hasn't even begun to cover this shit!
Got 3 files:
dtime.h (header file with DigitalTime Class in it)
dtime.cpp (DigitalTime implementation file)
and
hw7-1.cpp (the program that runs this shit, supposedly).
Now dtime.cpp and dtime.h change the boolean operators << , >> , and == to some funny crap, and do all sorts of weird things. Now, I've got the basic original program running, but I have to add this function in, and I can't seem to find where in the program flow I can get the fucking data! IT'S JUST NOT THERE IN ANY NORMAL SENSE!...
Now I'm tempted to just hack part of the header out, change the variables, and throw it in the main function to get it to work, but that's cheating. And I'd have to make the required function return nothing...
The required function is in the implementation file and in the header, it's
void interval_since(const DigitalTime& a_previous_time, int& hours_in_interval, int& minutes_in_interval);
Any help?
Files:
dtime.h (dtimeh.txt)
dtime.cpp (dtime.txt)
hw7-1.cpp (hw7-1.cpp)
I had to convert them to text for accursed yahoo...
PLEASE HELP!!! I have to have this in by midnight, and it DOESN'T WORK!!!
I have to find a way to get hours_in_interval and minutes_in_inverval...