From: Adam Brown Newsgroups: comp.os.msdos.djgpp Subject: Re: Date: Sun, 30 Aug 1998 00:34:07 +0200 Organization: IP Worldcom Lines: 9 Message-ID: <35E881DF.7106@geocities.com> References: Reply-To: adambrown1 AT geocities DOT com NNTP-Posting-Host: portls84.worldcom.ch 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 > Please help me with this problem: the following program should run > correctly, and it runs in others compilers. > In DJGPP we had problems when our programs use scanf("%c", &x) > mixed with scanf("%d", &y) or scanf("%f", &z), the first one is > not runned sucessfully. I have always found that using gets() and then sprintf() is a more flexible approach anyway, as line-buffered input is always fiddley to deal with.