Chapter 5

Introducing Structure into Your Programs

WHAT YOU WILL LEARN IN THIS CHAPTER:

  • How to declare and write your own C++ functions
  • How function arguments are defined and used
  • How to pass arrays to and from a function
  • What pass-by-value means
  • How to pass pointers to functions
  • How to use references as function arguments, and what pass-by-reference means
  • How the const modifier affects function arguments
  • How to return values from a function
  • How to use recursion

WROX.COM CODE DOWNLOADS FOR THIS CHAPTER

You can find the wrox.com code downloads for this chapter on the Download Code tab at www.wrox.com/remtitle.cgi?isbn=9781118368084. The code is in the Chapter 5 download and individually named according to the names throughout the chapter.

Get Ivor Horton's Beginning Visual C++ 2012 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.