For Loop attempt

Not feeling super hot about declaring a variable inside main… guess I’ll find out if that was a no-no or not in a sec.

#include <iostream>
#include <string>

using namespace std;

void PrintIntro();
string GetGuessAndPrintBack();

//application entry point
int main()
{
	PrintIntro();
	int GuessLimit = 5;
	for (int count = 1; count <= GuessLimit; count++)
	{
		GetGuessAndPrintBack();
	}
}

Privacy & Terms