#include // function Demonstration Function // prints out a useful message void DemonstrationFunction() { std::cout << "In Demonstration Function\n"; } // function main - prints out a message, then // calls DemonstrationFunction, then prints out // a second message. int main() { std::cout << "In main\n" ; DemonstrationFunction(); std::cout << "Back in main\n"; system("PAUSE"); // prevent the console window from closing return 0; }