aboutsummaryrefslogtreecommitdiffstats
path: root/ee1301/wk2
diff options
context:
space:
mode:
authorRossTheRoss <msattr@gmail.com>2019-02-19 21:55:30 -0600
committerRossTheRoss <msattr@gmail.com>2019-02-19 21:55:30 -0600
commitd308233cf4222c5bbcc1daa28feaea105e030f45 (patch)
tree0f169dd6671d3a5131b33c0531d251badff084bd /ee1301/wk2
parentFixed the forwards part? (diff)
downloadhomework-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')
-rw-r--r--ee1301/wk2/hw2_directory/strap012_HW2B.cpp4
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;