previous
|
index
|
next
Testing Functions
A simple
main
function:
int
main
(
int
argc
,
char
**
argv
)
{
cout
<<
cylinderVolume
(
5
,
4
);
// output should be 314.159
}
main
is called for the side-effects it produces, not for what it returns
previous
|
index
|
next