共回答了13个问题采纳率:92.3%
#include
#include
#include
int countnum,max=0;
using namespace std;
const int MaxN = 100;
struct student //定义学生基本信息结构体
{
int num; //学号
char name[20]; //姓名
char birthdate[20]; //出生日期
float math; //数学考试成绩
float timemath; //数学平时成绩
float chinese; //语文考试成绩
float timechinese; //语文平时成绩
float avemath; //数学成绩
float avechinese; //语文成绩
float aver; //平均成绩
float allaver; //总平均成绩
void Input()//信息录入模块
{
coutnum;
coutname;
coutbirthdate;
coutmath;
couttimemath;
coutchinese;
couttimechinese;
avemath=math*0.7+timemath*0.3;
avechinese=chinese*0.7+timechinese*0.3;
aver=(avemath+avechinese)/2;
allaver=avemath+avechinese;
}
void Print()//基本信息输出模块
{
cout
1年前
4