Function Review
First, let's review what you've already seen about functions. To use a C++ function, you must do the following:
Provide a function definition.
Provide a function prototype.
Call the function.
If you're using a library function, the function already has been defined and compiled for you. Also, you can use a standard library header file to provide the prototype. All that's left to do is call the function properly. The examples in this book have done that several times. For example, the standard C library includes the strlen() function for finding the length of the string. The associated standard header file cstring contains the function prototype for strlen() and several other string-related functions. This advance work allows you ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access