Swipe to navigate through the chapters of this book
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.
Please log in to get access to this content
To get access to this content you need the following product:
- Defining Functions
- Sequence number
- Chapter number
- Chapter 8