aboutsummaryrefslogtreecommitdiffstats
path: root/ee1301
diff options
context:
space:
mode:
authorRossTheRoss <msattr@gmail.com>2019-02-19 19:38:33 -0600
committerRossTheRoss <msattr@gmail.com>2019-02-19 19:38:33 -0600
commitb97685193eeb023e63940b5db73ffda83cddbf94 (patch)
tree912129282226834b0d8715186fc72bb5a6a4f422 /ee1301
parentMerge pull request #1 from RosstheRoss/Backup (diff)
downloadhomework-b97685193eeb023e63940b5db73ffda83cddbf94.tar
homework-b97685193eeb023e63940b5db73ffda83cddbf94.tar.gz
homework-b97685193eeb023e63940b5db73ffda83cddbf94.tar.bz2
homework-b97685193eeb023e63940b5db73ffda83cddbf94.tar.lz
homework-b97685193eeb023e63940b5db73ffda83cddbf94.tar.xz
homework-b97685193eeb023e63940b5db73ffda83cddbf94.tar.zst
homework-b97685193eeb023e63940b5db73ffda83cddbf94.zip
I am dumb
Diffstat (limited to '')
-rw-r--r--ee1301/wk2/hw2_directory/strap012_2B.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/ee1301/wk2/hw2_directory/strap012_2B.cpp b/ee1301/wk2/hw2_directory/strap012_2B.cpp
index be727a3..4675b35 100644
--- a/ee1301/wk2/hw2_directory/strap012_2B.cpp
+++ b/ee1301/wk2/hw2_directory/strap012_2B.cpp
@@ -23,6 +23,9 @@ int main()
cin >> hourChange >> travel;
for (int i = hourChange; i >= 0; i--)
{
+ if (i != 0) {
+ intervalChange++;
+ }
if (travel=='F') {
if (hourOG+hourChange>=12 && bar) {
if (hourOG+hourChange==12) {