My For Loop code

I moved the variable WORD_LENGTH before main(), then called that in the for loop for “count <=WORD_LENGTH”

void PrintIntro(); string GetGuessAndPrintBack(); constexpr int WORD_LENGTH = 5;

// the entry point for our application.
int main()
{
PrintIntro();

//constexpr int LIMIT = 5;

for (int count = 1; count <= WORD_LENGTH; count++)
{
	GetGuessAndPrintBack();
}

cout << endl;
return 0;

}

Privacy & Terms