- Modern C++:Efficient and Scalable Application Development
- Richard Grimes Marius Bancila
- 68字
- 2021-06-10 18:28:03
Defining C++ functions
At the most basic level, a function has parameters, has code to manipulate the parameters, and returns a value. C++ gives you several ways to determine these three aspects. In the following section, we will cover those parts of a C++ function from the left to the right of the declaration. Functions can also be templated, but this will be left to a later section.