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






Defining a Function

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