Defining a Function : Function Define « Function « C++
- C++
- Function
- Function Define
Defining a Function

#include <iostream>
using namespace std;
void printMessage (void)
{
cout << "Hello world!";
}
int main ()
{
printMessage();
return 0;
}
Related examples in the same category