TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: MIKE RUSKAI
from: GPi
date: 1995-05-03 10:39:00
subject: EMX main()

> Mike thought Re: EMX main() <

 MR> OK.  And calm down :)  I don't even program in C++.  I am currently
 MR> just  learning the language.  The reason I ask is that with Borland C++
 MR> 3.0, it  complains if you don't return a value in the main() function,
 MR> then ceases  to complain when you specify void as the value type.  EMX
 MR> doesn't complain  if you don't return a value.

And if you declare your main function thus:

main (void)
{
    ;
}

It is implicity of type int  (Well, it is under Borland C++ 3.0 for
DOS).  Therefore the compiler will complain if you don't return a
value.

-Gary

--- GEcho 1.00
* Origin: Boltar Developments BBS: New Zealand (649)410-5353 (3:772/207)
SEEN-BY: 620/243 622/407 623/630 632/339 640/705 670/215 690/347 711/409 410
SEEN-BY: 711/413 430 807 808 809 934 955 712/515 713/888 770/115 771/1320
SEEN-BY: 772/20 135 140 207 350 380 555 774/605 800/1 7877/2809
@PATH: 772/207 20 711/955 808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

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™.