|
Abstract: . . . Inform`atica (Biotecnologia) Profs: Lluis Alsed`a Gregori Guasp Gloria Garcia Ferran Reverter Anna Sam`a Pr`actica 5: Programacio en C (II) . . . . . . Inform`atica (Biotecnologia) Profs: Lluis Alsed`a Gregori Guasp Gloria Garcia Ferran Reverter Anna Sam`a Pr`actica 5: Programacio en C (II) Curs 2003-04 . . . . . . printf ("# b = %f\n", b); printf ("# a = %f\n", a); rewind (fitxdad); while (1) { fscanf (fitxdad, "%f %f", &x, &y); 5 Page 6 if (feof (fitxdad)) break; printf ("%f %f %f\n", x, y, exp (b * x a)); } fclose (fitxdad); return 0; } Aquest programa llegeix les . . . . . . Inform`atica (Biotecnologia) Profs: Lluis Alsed`a Gregori Guasp Gloria Garcia Ferran Reverter Anna Sam`a Pr`actica 5: Programacio en C (II) . . . . . . Inform`atica (Biotecnologia) Profs: Lluis Alsed`a Gregori Guasp Gloria Garcia Ferran Reverter Anna Sam`a Pr`actica 5: Programacio en C (II) Curs 2003-04 . . . . . . <nomfitxer>\n\n", argv[0]); return 1; } if ((fitxdad = fopen (argv[1], "r")) == NULL) { fprintf (stderr, "\nERROR: El fitxer %s no existeix o no es pot obrir...\n\n", argv[1]); return 1; } while (1) { fscanf (fitxdad, "%f %f", &x, &y); if (feof (fitxdad)) break; n = n 1; y = logf (y); . . . --2204,6,184,1983,11021
|