fscanf for double
use fscanf to read a a double value in a text file
What kind of paramter will fill the second argument of fscanf?
float f1;
fscanf(fp,"%f",f1);//right , no problem
double f2;
fscanf(fp,"%f",&f2);//cannot read value,f2 will not be changed
|