怎么用fwrite将double类型数据写入文件中fread读取文件中的double类型数据
ypedef struct information{
char name[32];
char ID[20];//身份证号码
char account[32];
char code[7];//密码
double money;//8个字节
struct information *previous , *next;//4个字节
}information , *Information ,a;
我用fwrite 将这个结构体写入文件:fwrite (&a , 99 , 1 , fp);然后用fread (&a , 99 , 1 , fp);读取数据,输出时其它的成员的数据都正确,但是a.money得到的总是一个垃圾值。为什么会这样啊。