gt; more.
> I should have done this before complaining. Sorry
> for the inconvenience.
>
> -Original Message-
> From: Christopher Faylor [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 02, 2002 5:32 PM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]; [EMAIL P
: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: trouble using scanf on double arguments under Windows2000
On Tue, Apr 02, 2002 at 04:58:32AM -0800, James Merritt wrote:
>I like Cygwin and will continue to support it and would like to
>continue playing with it and writing programs under
On Tue, Apr 02, 2002 at 04:58:32AM -0800, James Merritt wrote:
>I like Cygwin and will continue to support it and would like to
>continue playing with it and writing programs under Cygwin. I do not
>want to blame gcc or Cygwin because I like them, but I want to know
>what is causing this behavior
Hi Dr. Sonnenschein and the Cygwin newsgroup,
I have had the same problem using cygwin and gcc, I
believe I am using the latest version of gcc. I
thought I was doing something wrong in my program, but
I took the same program into Linux, Visual C++ and
HPUX 10.20 and they ran exactly the way they
scanf() does not always work the way I think it should.
Sample program:
#include
int main()
{
double dstat, ddyn;
dstat=2.;
scanf("%lf", &ddyn);
printf("%lf %lf\n", dstat, ddyn);
return 0;
}
usage:
hugo hugo.out
Sample input file hugo.in:
20.1
Output file hugo.out:
2.00 201.00
5 matches
Mail list logo