-
Call To A Function Demo
This is a demonstration on how call to a function works, and I seem to have a parse error before "}"
Here is the code:
Code:
#include <iostream>
//function demonstrating a call to a function
//prints out a useful message
void DemonstrationFunction()
{
std::cout << "In Demonstration\n";
}
//function main - prints out message then
//calls DemonstrationFunction, then prints out
//a second message
int main()
{
std::cout <<"In Main\n";
DemonstrationFunction();
std::cout << "Back In Main\n";
return 0
}
-
you forgot your semicolon.
-
ah how did I miss that...well I'm a beginner anyways. thanks for the help, I really appreciate it man.