aboutsummaryrefslogtreecommitdiffstats
path: root/ee1301/wk2
diff options
context:
space:
mode:
Diffstat (limited to '')
-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;