www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/15/11:12:23

Message-ID: <34BE34D3.4B7@post.comstar.ru>
Date: Thu, 15 Jan 1998 19:09:55 +0300
From: Dim Zegebart <zager AT post DOT comstar DOT ru>
Reply-To: zager AT post DOT comstar DOT ru
Organization: Comstar Ltd.
MIME-Version: 1.0
To: HackerOC3 <hackeroc3 AT aol DOT com>
CC: DJGPP Mail List <djgpp AT delorie DOT com>
Subject: Re: parse errors
References: <19980115130300 DOT IAA15160 AT ladder01 DOT news DOT aol DOT com>

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)

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019