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 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{