二进制读文件
函数:
*ifs.read((char )&p,sizeof(Person));
#include<iostream>
#include<fstream>
using namespace std;
//二进制读文件
class Person
{
public:
char m_Name[64];
int m_Age;
二进制读文件
函数:
*ifs.read((char )&p,sizeof(Person));
#include<iostream>
#include<fstream>
using namespace std;
//二进制读文件
class Person
{
public:
char m_Name[64];
int m_Age;