home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!Sirius.dfn.de!zrz.tu-berlin.de!gmdtub!jh
- From: jh@first.gmd.de (Joerg Heuer)
- Newsgroups: comp.lang.c++
- Subject: Re: Turbo C++, function prototypes
- Message-ID: <2262@bigfoot.first.gmd.de>
- Date: 1 Sep 92 12:05:48 GMT
- References: <1992Aug31.181755.13060@hou.amoco.com>
- Sender: news@bigfoot.first.gmd.de
- Lines: 25
-
- zpvy0a@hou.amoco.com (Prasad Yalamanchi WWNV x4269 9.125) writes:
-
- >I am trying to compile a program on Turbo C++, 3.0 . It gives me the following
-
- >error.
-
- >main () , function prototype missing.
-
- >Do i need to put in the 'main' function's prototype.
-
- >void main();
-
- >was still giving me errors. Could someone help.
-
- main's correct return type is 'int'. Try it. It's always better to write
- the things You mean explicitly. (Though it should work with the implicit
- 'int'.)
-
- J"org.
-
- --
- Joerg Heuer | UUCP: jh@gmdtub.uucp
- GMD-FIRST an der TUB | INTERNET: jh@first.gmd.de
- Rudower Chaussee 5, Geb. 13.7 | KOMEX: heuer@kmx.gmd.dbp.de
- D-1199 Berlin Adlershof, FRG | Tel/Fax: +49 30 6704 - 5819/5610
-