fwrite 写入float型乱码问题
struct people{
float hight;
char weight[7];
}stu;
用fwirte(&stu,sizeof(struct people),1,fp)写入文件后 打开文件看 hight的值是乱码 用fread读出后的值也不正确。
不知有何解决方案。
2011-04-02 20:11
2011-04-02 20:58
2011-04-02 21:14
2011-04-02 21:23
2011-04-02 21:30
2011-04-02 21:48
2011-04-02 22:27

2011-04-02 22:38