From 1a99a6c8d61c2f9eee85b28211ff2598b4e03154 Mon Sep 17 00:00:00 2001 From: connorduncan Date: Wed, 18 Feb 2026 11:16:20 -0800 Subject: [PATCH 1/3] Adding workflow to resolve issue#95 --- .github/workflows/build.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/build.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..b5bf693 --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,23 @@ +name: Build C++ + +on: + push: + branches: "**" + pull_request: + branches: [ main ] + +jobs: + install: + runs-on: ubuntu-latest + steps: + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install -y -f build-essential g++ cmake + build: + needs: install + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Build project + run: g++ -std=c++17 main.cpp From 21167f5944527f4e94dc9266e08400ea5ed3c399 Mon Sep 17 00:00:00 2001 From: connorduncan Date: Wed, 18 Feb 2026 11:18:49 -0800 Subject: [PATCH 2/3] Adding dependency to main to resolve issue#95 --- main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index d9884f9..c567d4a 100644 --- a/main.cpp +++ b/main.cpp @@ -3,6 +3,7 @@ #include #include #include +#include using std::cout; using std::cin; @@ -33,4 +34,4 @@ int main(){ }while( input != "nothing" ); return 0; -} \ No newline at end of file +} From 0702a45451c1d621ba727c4d1f3896203e3bfafa Mon Sep 17 00:00:00 2001 From: connorduncan Date: Wed, 18 Feb 2026 11:31:31 -0800 Subject: [PATCH 3/3] Adding If Statement to Catch Edge Case to resolve issue#96 --- main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.cpp b/main.cpp index c567d4a..b46346c 100644 --- a/main.cpp +++ b/main.cpp @@ -23,6 +23,10 @@ int main(){ cout << "What are you listening to?\n"; getline(cin,input); transform(input.begin(), input.end(), input.begin(), [](unsigned char c){ return std::tolower(c); }); + if(input == "nothing") + { + return 0; + } cout << VALIDATION[pick] << "! Let's listen to more\n"; do{