donc j'ai essayer le premier code c'as ecrit tres vite en ecriture !
Code:
pi@raspberrypi:~ $ cat ecrit2temperatures.c #include <stdio.h>void ecrit2temp(char * nomFic, float temperature1, float temperature2) {FILE * handle =fopen(nomFic, "w");fprintf(handle, "%5.2f %5.2f\n", temperature1, temperature2);// impression de controleprintf("On ecrit \n%5.2f %5.2f\n", temperature1, temperature2); // a supprimer si on est satisfait fclose(handle);}int main() {ecrit2temp("toto", 11.1, -14.985);return 0;
Statistics: Posted by ludoraspberry — Sat Mar 02, 2024 3:54 pm