20 lines
432 B
C++
Raw Normal View History

2024-08-25 12:32:57 -06:00
// Demonstrating a call to a function
#include <iostream>
/* function Demonstration Function
prints out a useful message */
void DemonstrationFunction()
{
std::cout << "In Demo 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;
}