From: Erik Max Francis Newsgroups: comp.os.msdos.djgpp Subject: Re: These parse errors are really getting annoying... Date: Fri, 16 Jan 1998 20:42:54 -0800 Organization: Alcyone Systems Lines: 21 Message-ID: <34C036CE.233BA4B9@alcyone.com> References: <19980113002900 DOT TAA01746 AT ladder02 DOT news DOT aol DOT com> NNTP-Posting-Host: newton.alcyone.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????!!!!! Because in C you can only declare variables at the beginning of a block. -- Erik Max Francis, &tSftDotIotE / mailto:max AT alcyone DOT com Alcyone Systems / http://www.alcyone.com/max/ San Jose, California, United States / icbm://+37.20.07/-121.53.38 \ "Life may be / the product of imperfections." / (Marclo Gleiser)