diff --git a/main.cpp b/main.cpp index 3d81b0a..ec3befc 100644 --- a/main.cpp +++ b/main.cpp @@ -5,6 +5,7 @@ // function prototypes: std::string get_hint(std::string,std::string); +void capitalize(std::string &); // Wordler game! int main(){ @@ -22,16 +23,15 @@ int main(){ std::cout << "Guess your five-letter word:\n_____\n"; do{ + // require user to enter another guess if their word isn't 5 letters long do{ std::cin >> guess; }while( guess.length() != 5 ); // capitalize guess for easy comparisons - for(int i=0; i