Modern C++:Efficient and Scalable Application Development
上QQ阅读APP看书,第一时间看更新

Using Functions

Functions are the infrastructure of C++; code is contained in functions and to execute that code you have to call a function. C++ is remarkably flexible in the ways that you can define and call functions: you can define functions with a fixed number of parameters or a variable number of parameters; you can write generic code so that the same code can be used with different types; and you can even write generic code with a variable number of types.