while(fread(&total_user[total],sizeof(user),1,fp)!=(int)NULL)
这是fread函数,他表示从文件fp中获取一个数据大小为sizeof(user)的字符放进第一个数组中