22 lines
406 B
C
22 lines
406 B
C
#include<stdio.h>
|
|
#include<stdlib.h>
|
|
#include<string.h>
|
|
|
|
int main(int argc, char const *argv[]){
|
|
|
|
if(argc==2){
|
|
FILE* flux;
|
|
flux=fopen(argv[1],"r");
|
|
|
|
if(flux){
|
|
double valeur=0.0;
|
|
int valeurRetour=0;
|
|
while(valeur!=EOF){
|
|
valeurRetour=fscanf(" %lf",&valeur);
|
|
printf(" %lf ",valeur);
|
|
}
|
|
fclose(flux);
|
|
}
|
|
}else printf("Veuillez utilisez le bon nombre de parametres\n");
|
|
return 0;
|
|
} |