CS 150 Introduction to C++
Programming - Spring 1998
|
[ Home |
Lecture Notes| WebTutor
| WebTutor Site Map]
Function Nomenclature
Functions are a
very important packaging techinque which allows you to break
a problem into "functional" pieces which abstract
out some particular part of the program and which may be
reusable by other programs too!
Before you use functions, it helps to know the language
(names or nomenclature used for functions).
Basically there are three things you need.
- function prototype which tells the
compiler how many parameters and their order and type
and what is the return value
- function use by a
"calling" program which uses, or
"calls", the function
- function definition which gives the
program for computing the function
it consists of a function heading
which lists the parameters and return value and a function
body which contains the progam for computing
the function.
Copyright chris wild 1998.
For problems or questions regarding this web contact [Dr. Wild].
Last updated: February 18, 1998.