From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: readkey() Date: Tue, 27 Jan 1998 13:12:03 -0500 Organization: Two pounds of chaos and a pinch of salt. Lines: 32 Message-ID: <34CE2373.79D2@cs.com> References: <34CD2F30 DOT 65C7 AT usa DOT net> NNTP-Posting-Host: ppp229.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Kharis Knightwind wrote: > > printf("think I got it.\n"); > int readkey(); > return(0); > } > > and when its compiling Rhide says there is a parse error before int in > the readkey line...yet if I place that line somewhere else it doesnt say > anything..plus it doesnt work...just wonderin. Open up your C textbook. Read about the difference between "declaring" a function and "invoking" or "calling" a function. For example, why do you use printf("think I got it.\n"); instead of int printf("think I got it.\n"); When you can answer that, you'll know why you got the error and how to fix it. -- --------------------------------------------------------------------- | John M. Aldrich | "If 'everybody knows' such-and-such, | | aka Fighteer I | then it ain't so, by at least ten | | mailto:fighteer AT cs DOT com | thousand to one." | | http://www.cs.com/fighteer | - Lazarus Long | ---------------------------------------------------------------------