Mail Archives: cygwin/2001/05/07/11:02:41
>Date: Mon, 07 May 2001 11:05:37 +0200
>To: cygwin AT cygwin DOT com
>From: Federico Urban <urban AT univ DOT trieste DOT it>
>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?
>
>
>
>--------------------------------------------------------
>Federico URBAN
>Dipartimento di Energetica
>Via Alfonso Valerio, 10
>34100 TRIESTE
>ITALY
>phone: +39 0406763231
>fax: +39 0406763812
>e-mail: urban AT univ DOT trieste DOT it
>--------------------------------------------------------
--------------------------------------------------------
Federico URBAN
Dipartimento di Energetica
Via Alfonso Valerio, 10
34100 TRIESTE
ITALY
phone: +39 0406763231
fax: +39 0406763812
e-mail: urban AT univ DOT trieste DOT it
--------------------------------------------------------
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple
- Raw text -