At 10:54 AM 5/7/2001, Federico Urban wrote:
>>Date: Mon, 07 May 2001 11:05:37 +0200
>>To: [EMAIL PROTECTED]
>>From: Federico Urban <[EMAIL PROTECTED]>
>>Subject: GCC (2.95.3-4) problems
>>
>>The following very simple I/O program compiled with gcc 2.95.3-4 version doesn't
>work (even if it works correctly with 2.95.3-2 versions)
>>
>>#include <stdio.h>
>>#include <math.h>
>>main() {
>>FILE *f1;
>>float s1,s2,s3,s4,s5;
>>f1=fopen("inputfile","r");
>>fscanf(f1,"%f %f %f %f %f\n",&s1,&s2,&s3,&s4,&s5);
>>printf("%f %f %f %f %f\n",s1,s2,s3,s4,s5);
>>fclose(f1);
>>}
>>~
>>For example:
>>
>>inputfile: 78.0 -58.56 0.0256 568241.256 457.4146
>>output on screen: 78.000000 5856.000000 256.000000 568241280.000000
>4574146.000000
>>
>>I'm using win2K pro SP1. Which could be the causes?
>>
See the mail archives on this subject.
Larry Hall [EMAIL PROTECTED]
RFK Partners, Inc. http://www.rfk.com
118 Washington Street (508) 893-9779 - RFK Office
Holliston, MA 01746 (508) 893-9889 - FAX
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple