From 434017da7f1b7c66a36cae5634d39bda4440bda5 Mon Sep 17 00:00:00 2001 From: EdJaPe Date: Wed, 18 Feb 2026 11:25:02 -0800 Subject: [PATCH] fixed nothing problem on issue #96 --- main.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/main.cpp b/main.cpp index d9884f9..089fabf 100644 --- a/main.cpp +++ b/main.cpp @@ -21,8 +21,12 @@ int main(){ pick = rand() % VALIDATION.size(); cout << "What are you listening to?\n"; getline(cin,input); - transform(input.begin(), input.end(), input.begin(), [](unsigned char c){ return std::tolower(c); }); - cout << VALIDATION[pick] << "! Let's listen to more\n"; + if (input == "nothing"){ + return 0; + }else{ + transform(input.begin(), input.end(), input.begin(), [](unsigned char c){ return std::tolower(c); }); + cout << VALIDATION[pick] << "! Let's listen to more\n"; + } do{ cout << "What's next?\n";