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 Merton College, Oxford.