Abstract
Segmenting a program into manageable chunks of code is fundamental to programming in every language. A function is a basic building block in C++ programs. So far every example has had one function, main(), and that has typically used functions from the Standard Library. This chapter is all about defining your own functions with names that you choose.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2014 Ivor Horton
About this chapter
Cite this chapter
Horton, I. (2014). Defining Functions. In: Beginning C++. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-0007-0_8
Download citation
DOI: https://doi.org/10.1007/978-1-4842-0007-0_8
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-0008-7
Online ISBN: 978-1-4842-0007-0
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books