| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 
 |  
int main()
{
 	double a[15][50]; 
 	double tps[15];
 	double autre[15];
 	double vit[15];
 	FILE *file; int  i; int j; int k;
 	char ligne[50];
 	char line[50];
 	char *p; char *sep = "; ";
 
 	file = fopen("nb.txt", "r");
 	i=0;j=0;
 	while(fgets(ligne, sizeof(ligne),file)!= NULL){
    		i++;
     		printf("%s", ligne);
     		strcpy(line,ligne);
     		p = strtok(line, sep);
     		do{
       			j++;
       			printf("%s\n",p);
       			printf("%lf\n",atof(p));
       			a[i][j]=atof(p);  \\attribut un morceau a une case du tableau
       			printf("a[%d][%d] vaut %lf\n",i,j,a[i][j]);  \\verif
       			p = strtok(NULL, sep);
     		}
     		while(p != NULL);
	}
 
 	fclose(file);
 
	printf("ok");  \\verif
 	for(k=0;k=i-1;k++){
		tps[k]=a[k+1][4*k+1];\\les valeurs correpondant au tps sont les mutltiples de 4 modulo 1 de la deuxieme entre a [][]
        	autre[k]=a[k+1][4*k+2];\\idem +2
        	vit[k]=a[k+1][4*k+3];
	}
 	printf("%lf, %lf, %lf", tps[1], vit[1], autre[1]);  \\verif
 	return ; 
} |