用文件调用的函数调用时卡住了,请看看有什么问题
void save()
{
fclose(stdout);
freopen("date:/xingchen.XQ","w",stdout);
cout<<XC;
fclose(stdout);
freopen("date:/zhiliang.XQ","w",stdout);
cout<<ZL;
fclose(stdout);
freopen("date:/weixing date.XQ","w",stdout);
cout<<XX_name;
fclose(stdout);
}
void read()
{
fclose(stdin);
freopen("date:/xingchen.XQ","r",stdin);
cin>>XC;
fclose(stdin);
freopen("date:/zhliang.XQ","r",stdin);
cin>>ZL;
fclose(stdin);
freopen("date:/weixingdate.XQ","r",stdin);
cin>>XX_name;
fclose(stdin);
if(XX_name!="未成为卫星") in_gd=1;
}