












































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!













































Chapter 7 Topics
Function Calls
Function Call Syntax
What is in a heading?
Prototypes
#include
Successful Function Compilation
Example
void DisplayMessage(int index) { if(index < 35) cout << “Pleasant”; else if(index <= 60) cout << “Unpleasant”; else cout << “Health Hazard”; }
Header Files
Value-Returning Functions #include
Rest of Program int Square(int n) // Header and body { return n * n; } int Cube(int n) // Header and body { return n * n * n; }