Mega Code Archive

 
Categories / C++ / Function
 

How to prototype the printMessage function

#include <iostream> using namespace std; void printMessage(void);  // this is the prototype! int main () {    printMessage();     return 0; } void printMessage (void) {    cout << "Hello world!"; }