4. Using C++ Functions. Object-Oriented Programming Using C++ Second Edition. 4. Objectives. In this chapter, you will learn: About using function How to use procedural abstraction About scope rules How to construct function headers and prototypes
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
void computeTax(int price);
If more than one argument is passed into a function, you provide a list of arguments and separate them with commas
When price is passed to computeTax(), price is called an argument to the function, or an actual parameter, because price holds the value that will actually be used by the function computeTax()
4Passing Values to Functions
double &cash = someMoney;