My for loop

constexpr int MAX_TRIES = 5;

for (int count = 1; count <= MAX_TRIES; count++)
{
	cout << count <<". ";
	GetGuessAndPrintBack();
}

I’ve put an extra bit to indicate how many tries were used. It looks weird tho: cout << count seems confusing on the eyes.

Privacy & Terms