Skip to Main Content
Practical C++
book

Practical C++

by Rob McGregor
August 1999
Beginner to intermediate content levelBeginner to intermediate
912 pages
15h 44m
English
Que
Content preview from Practical C++

Chapter 7. Creating and Using Functions

<feature>
  • Learn about various types of functions

  • Understand function return types and values

  • Find out how to create your own functions

  • Discover how to use command-line arguments

  • Find out how to use variable-argument lists

  • See how to make functions reusable with modules

</feature>

Why Use Functions?

Functions are extremely important in C++, and any real C++ program will have at least one custom function designed to perform some of the program’s work. By creating your own functions, you open the door to an endless world of possibilities. In this chapter, you’ll see how to conceptualize and write your own functions. You’ll also see how to pass data to the functions, process this data, and return a useful result to ...

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.
Start your free trial

You might also like

Practical C++ Programming, 2nd Edition

Practical C++ Programming, 2nd Edition

Steve Oualline
C++ Cookbook

C++ Cookbook

D. Ryan Stephens, Christopher Diggins, Jonathan Turkanis, Jeff Cogswell

Publisher Resources

ISBN: 0789721449Purchase book