- 谁拿了最多奖学金
- 2008-12-24 20:43:37 @
#include
#include
using namespace std;
ifstream fin("date.txt");
ofstream fout("date2.txt");
struct student
{
char name[10];
float qimo;
float pingyi;
char gb;
char xb;
int lun;
int qian;
} student[100];
int n,qiandan,qianquan,k,i;
void ru()
{
fin>>n;
for(int i=0;i>student[i].name;
fin>>student[i].qimo;
fin>>student[i].pingyi;
fin>>student[i].gb;
fin>>student[i].xb;
fin>>student[i].lun;
student[i].qian=0;
}
}
void ys()
{
for(i=0;i80 && student[i].lun>0)
student[i].qian=student[i].qian+8000;
}
}
void ws()
{
for(i=0;i85 && student[i].pingyi>80)
student[i].qian=student[i].qian+4000;
}
}
void cj()
{
for(i=0;i90)
student[i].qian=student[i].qian+2000;
}
}
void xbjx()
{
for(i=0;i85)
student[i].qian=student[i].qian+1000;
}
}
void bj()
{
for(i=0;i80 && student[i].gb=='Y')
student[i].qian=student[i].qian+850;
}
}
void panduan()
{
qiandan=student[0].qian;
k=0;
for(i=1;iqiandan)
{
qiandan=student[i].qian;
k=i;
}
}
for(i=0;i
1 条评论
-
Wmosquito LV 4 @ 2022-01-27 20:51:59
望风栈,使密度
- 1