Defining Your Own C++ Functions

by Larry Ullman and Andreas Signer

0 ratings • 0 reviews • 0 shelved
Book cover for Defining Your Own C++ Functions

Bookhype may earn a small commission from qualifying purchases. Full disclosure.

Need to know HTML and PHP programming right now, but don’t want a 1,000-page tome? Check out the Peachpit’s new Short Cuts! Quick PDF guides that are...Smart...Handy...Concise.

This mini guide covers exactly what you need to know about defining your own C++ functions, and nothing more. Why define functions? The premise behind any function in any language is simple: encapsulate a process under one name. Then, by calling that name (invoking the function), you can repeat that sequence of steps with ease. New to C++? No problem. You’ll get all the fundamentals, techniques, and key concepts you need to understand how to define and call your own functions. First you’ll create a simple function, one that takes no arguments and returns no values. Then you’ll begin writing functions that take required arguments, optional arguments, and overloading. The guide concludes with a lesson on variable scope: understanding where variables exist.
  • ISBN10 032148116X
  • ISBN13 9780321481160
  • Publish Date 8 April 2021
  • Publish Status Active
  • Publish Country US
  • Publisher Pearson Education (US)
  • Imprint Peachpit Press Publications
  • Format eBook
  • Language English