void fileOutput(contacts student[] , int n){
ofstream out ;
out . open("tongxunlu-new.txt") ;
for(int i = 0 ; i<= n-1 ; i++){
out << "学号" << ' ' <<' ' << student[i].studentnum << '
';
out << "姓名" << ' ' <<' ' << student[i].name << '
';
out << "性别" << ' ' <<' ' << student[i].gender << '
';
out << "生日" << ' ' <<' ' << student[i].birthday.year <<"年"
<< student[i].birthday.month <<"月"
<< student[i].birthday.day <<"日"
<< '
';
out << "家庭住址" << ' ' <<' ' << student[i].address << '
';
out << "QQ号" << ' ' <<' ' << student[i].qqnum << '
';
out << "电话号" << ' ' <<' ' << student[i].phonenum << '
';
out << "email" << ' '<<' '<< student[i].email << '
'<< '
';
}
out.close();
cout<<"导出文件成功"<<endl;
}