diff --git a/main.cpp b/main.cpp index 690cf17..18f68b0 100644 --- a/main.cpp +++ b/main.cpp @@ -23,8 +23,14 @@ int main(){ srand(time(0)); pick = rand() % VALIDATION.size(); cout << "What are you listening to?\n"; - input = get_input_in_lowercase(); - cout << VALIDATION[pick] << "! Let's listen to more\n"; + + getline(cin,input); + 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";