FM> Well, I think that in C function prototypes (delaration of
FM> the function name and the types in parameters closed by a semicolon)
FM> are optional as long as the function you're calling PRECEDES using
FM> or "calling" the function. It's like Turbo Pascal's "FORWARD"
FM> declaration of procedures and functions that may be used in some
FM> other function appearing before it in order. I think that C++
1. a prototype of a normal function is only required if you use it
before you define it.
2. a prototype of a method (member function) is only required if the
method is to be defined outside of the class. when everything's defined
inside the class, you don't need to prototype at all, no dependency
rules apply, in contrary to regular functions.
matju
--- Terminate 4.00/Pro
---------------
* Origin: The Lost Remains Of SatelliteSoft BBS (1:163/215.42)
|