TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: FRANK MASINGILL
from: MATHIEU BOUCHARD
date: 1997-08-28 06:31:00
subject: Mathplay.Cpp

 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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.