From d308233cf4222c5bbcc1daa28feaea105e030f45 Mon Sep 17 00:00:00 2001 From: RossTheRoss Date: Tue, 19 Feb 2019 21:55:30 -0600 Subject: A hackjob to make hackjobs feel bad --- ee1301/wk2/hw2_directory/strap012_HW2B.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ee1301') 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; -- cgit v1.2.3