From eb0c8f014d16665eab849ec5ca237935d032287d Mon Sep 17 00:00:00 2001 From: ydoco Date: Mon, 21 Feb 2022 11:12:17 -0800 Subject: [PATCH] added quit feature, resolves #2, also added worlflow resolves #1 --- main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.cpp b/main.cpp index 3d81b0a..a61c25b 100644 --- a/main.cpp +++ b/main.cpp @@ -24,6 +24,10 @@ int main(){ do{ do{ std::cin >> guess; + if(guess == "quit"){ + std::cout << "Quitting the game" << std::endl; + return 1; + } }while( guess.length() != 5 ); // capitalize guess for easy comparisons