I just created a random number generator within main. Following that I attempted too put it into is on function called "random". When attempting too call this function I received this error message... Can someone please help me out!
Error Message: 'random' undeclared (first use this function)
random must either have a prototype (recommended) or moved above main(). A prototype allows the compiler to perform type-checking against the parameters and arguments when the function is invoked (called).
Here's an example of a prototype:
1 2 3 4 5 6 7 8 9
int random(); // Prototype
int main()
{
}
int random() // Definition
{
}