| 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
 
 |  
 
int main(int argc, char *argv[])
{
FILE* fichier = NULL;
double score[1] = {0}; // Tableau pour stocker le nombre mis à zéro
 
 
 
fichier = fopen(" http://www.mapage.php", "r" );
 
 
system("start http://www.mapage.php\n");
 
fseek(fichier, 50, SEEK_SET);
 
//fseek (systeme("start <a href="http://www.mapage.php,50" target="_blank">http://www.mapage.php,50</a>, SEEK_SET"));
 
if (fichier != NULL)
{
fscanf(fichier, "%lf ", &score[0]); //, &score[1], &score[2]);
 
printf("Le nombre lu sur la page est : %lf ",score[0] ); //%.0lf (%.zérolf) me supprime la virgule et ce qu'il y a derrière si besoin
 
 
fclose(fichier);
}
 
return 0;
} | 
Partager