#include
#include
#include
using namespace std;
struct Library
{
string m_strID;//学号。
string m_strName;
string m_strAuthor;
string m_strPulishing;
string m_strClass;
unsigned int Price;
string m_strISBN;
unsigned int m_nYear;//出生年份。
struct Library *next;
};
int main()
{
struct Library p;
cin>>p.m_nYear;
cin>>p.m_strName;
ofstream out;
ifstream in;
out.open("111.txt"); //保存文件
out<
in.open("111.txt"); //读取文件
in>>p.m_nYear;
in>>p.m_strName;
cout<
return 0;
}
楼主可以看看,我昨天回答一个网友的