home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / cplus / 13138 < prev    next >
Encoding:
Internet Message Format  |  1992-09-01  |  1.1 KB

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