O'Reilly logo

Sams Teach Yourself C++ in 24 Hours, Third Edition by Jesse Liberty

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Hour 5. Functions

When people talk about C++ they mention objects first. Yet objects rely on functions to get their work done. This hour you learn

  • What a function is and what its parts are

  • How to declare and define functions

  • How to pass parameters into functions

  • How to return a value from a function

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required