From a99af16008b2016665ba2a134d5b6d6debcae557 Mon Sep 17 00:00:00 2001 From: j4sperneedshelp <147946914+j4sperneedshelp@users.noreply.github.com> Date: Wed, 18 Feb 2026 11:31:51 -0800 Subject: [PATCH 1/3] Added .yml file --- .github/workflows/main.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..03a126d --- /dev/null +++ b/.github/workflows/main.yml @@ -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 vim + build: + needs: install + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Build project + run: g++ -std=c++17 main.cpp From 30e76ff3596a0db96fa96cb0cf6f2c31efc29e68 Mon Sep 17 00:00:00 2001 From: j4sperneedshelp <147946914+j4sperneedshelp@users.noreply.github.com> Date: Wed, 18 Feb 2026 11:34:34 -0800 Subject: [PATCH 2/3] Fixed issue of program not terminating if first input is "nothing" --- main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index d9884f9..9556911 100644 --- a/main.cpp +++ b/main.cpp @@ -3,6 +3,7 @@ #include #include #include +#include using std::cout; using std::cin; @@ -22,6 +23,7 @@ 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 (intput == "nothing") return 0; cout << VALIDATION[pick] << "! Let's listen to more\n"; do{ @@ -33,4 +35,4 @@ int main(){ }while( input != "nothing" ); return 0; -} \ No newline at end of file +} From 446703bfdc9a294e44d48b05f72638f23c759891 Mon Sep 17 00:00:00 2001 From: j4sperneedshelp <147946914+j4sperneedshelp@users.noreply.github.com> Date: Wed, 18 Feb 2026 11:35:31 -0800 Subject: [PATCH 3/3] Fixed typo --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 9556911..29996ef 100644 --- a/main.cpp +++ b/main.cpp @@ -23,7 +23,7 @@ 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 (intput == "nothing") return 0; + if (input == "nothing") return 0; cout << VALIDATION[pick] << "! Let's listen to more\n"; do{