From: Weiqi Gao Newsgroups: comp.os.msdos.djgpp Subject: Re: These parse errors are really getting annoying... Date: Mon, 12 Jan 1998 19:20:32 -0600 Organization: Spectrum Healthcare Services Lines: 18 Message-ID: <34BAC160.584F24BA@a.crl.com> References: <19980113002900 DOT TAA01746 AT ladder02 DOT news DOT aol DOT com> NNTP-Posting-Host: a116001.stl1.as.crl.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 HackerOC3 wrote: > > printf("y value?"); > int y; > scanf(" %d", &y); > printf("c value?"); > int c; > scanf(" %d", &c); > > what's wrong there? "Parse error before int" > what gives????!!!!! In C, you need to declare all variables at the top of a block - before any executable statements. -- Weiqi Gao weiqigao AT a DOT crl DOT com