#Functions, Scan, and Conditionals project

13 messages · Page 1 of 1 (latest)

craggy zealotBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

slate crypt
#

You cannot declare functions within functions.

#

Move your welcomeScreen () and IntermediateCalculator () functions outside of main().
Either above or below.

sullen perch
#

oh

#

well the instruction says

#

i have to call the welcome screen() function in main function

wide hinge
#

Calling a function isn't the same as defining a function ;)

slate crypt
#
void welcomeScreen(void); // prototyping a function

int main()
{
  welcomeScreen();  // calling a function
}

// defining a function
void welcomeScreen(void)
{
}
#

You don't need to prototype the function if you put the definition ahead of main().

sullen perch
#

ahh ok

craggy zealotBOT
#

<@undefined>

Please Do Not Delete Posts!

Please don't delete forum posts. They can be helpful to refer to later and other members can learn from them. In the future you can use !solved to close a post and mark a post as solved.

sullen perch
#

!solved

craggy zealotBOT
#

Thank you and let us know if you have any more questions!

This thread is now set to auto-hide after an hour of inactivity