diff --git a/main.cpp b/main.cpp index d9884f9..c3f7111 100644 --- a/main.cpp +++ b/main.cpp @@ -22,12 +22,19 @@ 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); }); - cout << VALIDATION[pick] << "! Let's listen to more\n"; + if (input == "nothing") { + return 0; + } else { + cout << VALIDATION[pick] << "! Let's listen to more\n"; + } do{ cout << "What's next?\n"; getline(cin,input); transform(input.begin(), input.end(), input.begin(), [](unsigned char c){ return std::tolower(c); }); + if (input == "nothing") { + return 0; + } pick = rand() % VALIDATION.size(); cout << VALIDATION[pick] << "!\n"; }while( input != "nothing" );