Hello everyone, I just had a quick question up to this point in the course. I understand why we have to prototype our functions to get them to work, but I noticed Ben follows the rough format of:
FunctionPrototypes()
int main ()
{
FunctionCalls()
}
Functions()
My question is, is there anything wrong with doing the function declaration and prototyping above the “int main()” in the same spot so that we don’t have to use as many lines overall? Or is this considered sloppy or frowned upon?
For example, I wrote the following:
void PrintIntro()
{
steps
}
string GetGuessPrintGuess()
{
steps
}
int main()
{
Calls
}