Message-ID: <34BE34D3.4B7@post.comstar.ru> Date: Thu, 15 Jan 1998 19:09:55 +0300 From: Dim Zegebart Reply-To: zager AT post DOT comstar DOT ru Organization: Comstar Ltd. MIME-Version: 1.0 To: HackerOC3 CC: DJGPP Mail List Subject: Re: parse errors References: <19980115130300 DOT IAA15160 AT ladder01 DOT news DOT aol DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Precedence: bulk HackerOC3 wrote: > > printf("y value?"); > int y; > scanf(" %d", &y); > printf("color value?"); > int c; > scanf(" %d", &c); This is invalid code, the valid one is : int func() { printf("y value?"); { int y; scanf(" %d", &y); } printf("color value?"); { int c; scanf(" %d", &c); } } -- ____ ____ | \ / Dim Zegebart ____/____ Moscow Russia WWW - http://www.geocities.com/siliconvalley/pines/7817 DZcomm - comm library for Allegro Palantir - multytasking kernel for Allegro (based on PDMLWP)