From 66ec99c4b4d2168ec9b68b950ec69768285e0c65 Mon Sep 17 00:00:00 2001 From: Abram Hernandez Date: Wed, 18 Feb 2026 11:23:07 -0800 Subject: [PATCH 1/2] Fix bug where 'nothing' does not terminate on first input fixes #96 --- main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main.cpp b/main.cpp index d9884f9..7d8b648 100644 --- a/main.cpp +++ b/main.cpp @@ -1,3 +1,4 @@ +#include #include #include #include @@ -22,6 +23,11 @@ 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); }); + // 🔥 add this check + if (input == "nothing") { + return 0; + } + cout << VALIDATION[pick] << "! Let's listen to more\n"; do{ From 2202e617fed0f4d0039b380fee727f76dccb6451 Mon Sep 17 00:00:00 2001 From: Abram Hernandez Date: Wed, 18 Feb 2026 11:42:03 -0800 Subject: [PATCH 2/2] added compile status badge --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index bbcf55a..cfd1571 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,6 @@ I like that app too! -This repo is compatible with the [cpp-container docker container](https://github.com/ChicoState/cpp-container). \ No newline at end of file +This repo is compatible with the [cpp-container docker container](https://github.com/ChicoState/cpp-container). + +[![C/C++ CI](https://github.com/AbramHernandez/autovalidate/actions/workflows/c-cpp.yml/badge.svg)](https://github.com/AbramHernandez/autovalidate/actions/workflows/c-cpp.yml) \ No newline at end of file