本来用SDK的WriteFile和ReadFile,发现错的离谱,那个提问估计也没人回答了。
比如这样一个类:
class CCar
{
public:
CCar(void);
~CCar(void);
public:
CString m_strID;
double m_dMiles;
double m_dTraveled;
CString m_strRTNDate;
CString m_strRentDate;
CCar   *next;
};
CCar::CCar(void)
{
m_strID= m_strRTNDate= m_strRentDate=_T("");
m_dMiles=m_dTraveled=0;
next=NULL;
}CCar::~CCar(void)
{
}