From b97685193eeb023e63940b5db73ffda83cddbf94 Mon Sep 17 00:00:00 2001 From: RossTheRoss Date: Tue, 19 Feb 2019 19:38:33 -0600 Subject: I am dumb --- ee1301/wk2/hw2_directory/strap012_2B.cpp | 3 +++ 1 file changed, 3 insertions(+) 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) { -- cgit v1.2.3