diff --git a/day8/day8Part1 b/day8/day8Part1 deleted file mode 100755 index f7c278f..0000000 Binary files a/day8/day8Part1 and /dev/null differ diff --git a/day8/day8Part1.cpp b/day8/day8Part1.cpp index 7098b00..e69de29 100644 --- a/day8/day8Part1.cpp +++ b/day8/day8Part1.cpp @@ -1,49 +0,0 @@ -#include -#include -#include -#include -using namespace std; - -int main (void) -{ - string rawInput; - int valueCounter = 0; - int charCount = 0; - int lineValueCounter = 0; - bool print = false; - ifstream readFile ("data/input.txt", ios::in); - - //Read file into arrays - while(getline(readFile, rawInput)) - { - charCount = 0; - lineValueCounter = 0; - print = false; - for(int i=0;i<=rawInput.size();i++) - { - switch (rawInput[i]) - { - case ' ': - if(charCount == 2 || charCount == 3 || charCount == 4 || charCount == 7) - { - if(print) cout << charCount << "\t"; - lineValueCounter++; - } - charCount = 0; - break; - case '|': - print = true; - lineValueCounter = 0; - //cout << endl << "----------" << endl; - break; - default: - charCount++; - } - } - valueCounter += lineValueCounter; - cout << endl << "*********" << endl << "Current Count: " << valueCounter << endl << "*********" << endl; - } - cout << valueCounter << endl; - - return 0; -}