(C++) function definition
February 24, 2017 · View on GitHub
(C++) function definition
A function definition is consists of (a copy of) a function declaration and this function's body.
Function definitions are commonly found in implementation (.cpp) files.
#include <iostream> void SayHello() { std::cout << "Hello\n"; }
The first line of the function SayHello is (a copy of) the function declaration. The part between the accolades is the function body.