13,871
社区成员




#include<iostream>
#include<fstream>
#include<iomanip>
#include<time.h>
#include<string.h>
#include<stdlib.h>
#include<conio.h>
#include<string>
#include"shixun.h"
using namespace std;
//显示错误部分
void chaxun()//读取信息
{
char name[20];
int grade = 0;
int num = 0;
float score;
ifstream in("player.dat", ios::in);
if (in == 0)
{
cerr << " 文件打开错误!\n";
exit(1);
}
cout << "*****************************************************************************" << endl;
cout << setiosflags(ios::right) << setw(10) << "姓名" << setw(15) << "等级" << setw(13) << "答题数量" << setw(10) << "分数" << '\n';