delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/05/13:31:49

From: gfoot AT mc31 DOT merton DOT ox DOT ac DOT uk (George Foot)
Newsgroups: comp.lang.c++,comp.os.msdos.djgpp
Subject: Re: CIN COUT
Followup-To: comp.lang.c++,comp.os.msdos.djgpp
Date: 5 Mar 1997 15:31:34 GMT
Organization: Oxford University
Lines: 19
Message-ID: <5fk3km$kaa@news.ox.ac.uk>
References: <331BC0D5 DOT 5CB AT aracnet DOT com> <5fjr8f$3ko AT whitbeck DOT ncl DOT ac DOT uk>
NNTP-Posting-Host: mc31.merton.ox.ac.uk
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Dazzling Dazz (O DOT J DOT D DOT Habibi AT ncl DOT ac DOT uk) wrote:

: wouldn't you have to declare main as a void or int? Like this:

:  void main()
:  {
:    ...

:  int main()
:  {
:    ...

: I've never used that compiler so this is probably wrong, sorry.

You shouldn't declare it to be void. main() should always return int.

-- 
George Foot <gfoot AT mc31 DOT merton DOT ox DOT ac DOT uk>
Merton College, Oxford.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019