From 233fee6f1238d0043361876937f718991ea87125 Mon Sep 17 00:00:00 2001 From: RossTheRoss Date: Tue, 19 Feb 2019 20:09:29 -0600 Subject: SQUARE FUCKING ONE BOI --- ee1301/wk2/hw2_directory/strap012_2B.cpp | 52 +------------------------------- 1 file changed, 1 insertion(+), 51 deletions(-) (limited to 'ee1301') diff --git a/ee1301/wk2/hw2_directory/strap012_2B.cpp b/ee1301/wk2/hw2_directory/strap012_2B.cpp index ff060a8..15c8152 100644 --- a/ee1301/wk2/hw2_directory/strap012_2B.cpp +++ b/ee1301/wk2/hw2_directory/strap012_2B.cpp @@ -21,54 +21,4 @@ int main() cin >> hourOG >> Time; cout << "How many hours forward or backward do you want to move the clock (F for forwards, B for backward): "; cin >> hourChange >> travel; - for (int i = hourChange; i >= 0; i--) - { - if (i != 0) { - intervalChange++; - } - if (travel=='F') { - if (hourOG+hourChange>=12) { - if (hourOG+hourChange==12) { - timeChange++; - } else { - hourNew=(hourOG+hourChange)-12; - bar=true; - } - timeChange++; - } - } - if (travel=='B') { - - } - if (intervalChange >= 12) { - intervalChange = 0; - timeChange++; - } - } - - for (timeChange; timeChange > 1; timeChange--) { - //if (change12) { - if (Time == 'A') - { - Time += 15; - //foo = true; - } else { - if (Time == 'P') { //&& !foo) { - Time -= 15; - } - //foo = false; - } - } - if (travel == 'F' && !bar) - { - hourNew = hourOG + intervalChange; - } - if (travel == 'B') - { - hourNew = hourOG + intervalChange; - } - //Deprecated, doesn't work - //hourNew=hourOG+intervalChange; - cout << "The new time is: " << hourNew << " " << Time << "M" << endl; - return 0; -} \ No newline at end of file + \ No newline at end of file -- cgit v1.2.3