-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcallfunc.cpp
38 lines (34 loc) · 921 Bytes
/
callfunc.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
* =====================================================================================
*
* Filename: callfunc.cpp
*
* Description: Demonstration of how to call a function
*
* Version: 1.0
* Created: 24/12/12 15:04:51
* Revision: none
* Compiler: gcc
*
* Author: Robert Halliday (rh), [email protected]
* Company: rphhpr
*
* =====================================================================================
*/
#include <iostream>
// function Demonstrating a Call to a 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";
return 0;
}