programming-examples/c++/Others/A C++ program with several functions.cpp
2019-11-15 12:59:38 +01:00

22 lines
393 B
C++

A C++ program with several functions
#include <iostream>
using namespace std;
void line(), message();
int main()
{
cout << "The program starts in main()." << endl;
line();
message();
line();
cout << "At the end of main()." << endl;
return 0;
}
void line()
{
cout << "line();" << endl;
}
void message()
{
cout << "In function message()." << endl;
}