home *** CD-ROM | disk | FTP | other *** search
- Before you use an object in a C++ program, you must specify its
- type. The example on the left will produce an error when you try
- to compile it because the main() function tries to call the
- function func1() before its type has been declared. The example
- on the right compiles without an error because the type of
- func1(), namely a function that takes no arguments and has a
- return type of void, is declared before it is called.
-