Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
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)
6 changes: 6 additions & 0 deletions main.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include <algorithm>
#include <iostream>
#include <cstdlib>
#include <ctime>
Expand All @@ -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{
Expand Down