diff options
author | RossTheRoss <msattr@gmail.com> | 2019-02-19 21:55:30 -0600 |
---|---|---|
committer | RossTheRoss <msattr@gmail.com> | 2019-02-19 21:55:30 -0600 |
commit | d308233cf4222c5bbcc1daa28feaea105e030f45 (patch) | |
tree | 0f169dd6671d3a5131b33c0531d251badff084bd /ee1301/wk2/hw2_directory/strap012_HW2B.cpp | |
parent | Fixed the forwards part? (diff) | |
download | homework-d308233cf4222c5bbcc1daa28feaea105e030f45.tar homework-d308233cf4222c5bbcc1daa28feaea105e030f45.tar.gz homework-d308233cf4222c5bbcc1daa28feaea105e030f45.tar.bz2 homework-d308233cf4222c5bbcc1daa28feaea105e030f45.tar.lz homework-d308233cf4222c5bbcc1daa28feaea105e030f45.tar.xz homework-d308233cf4222c5bbcc1daa28feaea105e030f45.tar.zst homework-d308233cf4222c5bbcc1daa28feaea105e030f45.zip |
A hackjob to make hackjobs feel bad
Diffstat (limited to 'ee1301/wk2/hw2_directory/strap012_HW2B.cpp')
-rw-r--r-- | ee1301/wk2/hw2_directory/strap012_HW2B.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ee1301/wk2/hw2_directory/strap012_HW2B.cpp b/ee1301/wk2/hw2_directory/strap012_HW2B.cpp index 8be9d98..158e00e 100644 --- a/ee1301/wk2/hw2_directory/strap012_HW2B.cpp +++ b/ee1301/wk2/hw2_directory/strap012_HW2B.cpp @@ -35,7 +35,7 @@ int main() { timeChange++; } - else //This else statement is a complete hackjob. + else //This else statement is a complete hackjob. It works consistently though. { int temp = (hourOG + hourChange) - 12; bar=true; @@ -77,7 +77,7 @@ int main() } if (travel == 'B') { - hourNew = hourOG + intervalChange; + hourNew = hourOG - intervalChange; } cout << "The new time is: " << hourNew << " " << Time << "M" << endl; return 0; |