diff options
author | RossTheRoss <msattr@gmail.com> | 2019-02-19 20:09:29 -0600 |
---|---|---|
committer | RossTheRoss <msattr@gmail.com> | 2019-02-19 20:09:29 -0600 |
commit | 233fee6f1238d0043361876937f718991ea87125 (patch) | |
tree | 2f9793d86b750d5cbf8d75fa4575001731dc331d /ee1301/wk2/hw2_directory | |
parent | ? (diff) | |
download | homework-233fee6f1238d0043361876937f718991ea87125.tar homework-233fee6f1238d0043361876937f718991ea87125.tar.gz homework-233fee6f1238d0043361876937f718991ea87125.tar.bz2 homework-233fee6f1238d0043361876937f718991ea87125.tar.lz homework-233fee6f1238d0043361876937f718991ea87125.tar.xz homework-233fee6f1238d0043361876937f718991ea87125.tar.zst homework-233fee6f1238d0043361876937f718991ea87125.zip |
SQUARE FUCKING ONE BOI
Diffstat (limited to '')
-rw-r--r-- | ee1301/wk2/hw2_directory/strap012_2B.cpp | 52 |
1 files changed, 1 insertions, 51 deletions
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 |