【求助】帮忙改下错误!
#include<iostream.h>#include<string.h>
class Student
{
float ID;
char NAME[20];
char SEX[10];
int SCORE[6];
public:
Student(float id=1,char *name="譁鄵",char *sex="男",int score1=0,int score2=0,int score3=0,int score4=0,int score5=0)
{
ID=id;
strcpy(NAME,name);
strcpy(SEX,sex);
SCORE[0]=0;
SCORE[2]=1;
SCORE[3]=2;
SCORE[4]=3;
SCORE[5]=4;
}
int SCORE(int z)
{
int a,b,c,d,e,sum;
if(z==1)
{a=90;b=80;c=70;d=50;e=99;}
if(z==2)
{a=77;b=84;c=72;d=13;e=56;}
if(z==3)
{a=77;b=23;c=100;d=15;e=32;}
if(z==4)
{a=87;b=45;c=75;d=65;e=55;}
if(z==5)
{a=74;b=85;c=85;d=64;e=46;}
if(z==6)
{a=66;b=87;c=95;d=67;e=75;}
if(z==7)
{a=65;b=45;c=75;d=79;e=63;}
if(z==8)
{a=94;b=75;c=34;d=74;e=78;}
{sum=a+b+c+d+e;}
void name(int x)
{
if(x==1) cout<<"姓名:譁鄵"<<endl;
if(x==2) cout<<"姓名:詉庅枏"<<endl;
if(x==3) cout<<"姓名:脦塍蓲"<<endl;
if(x==4) cout<<"姓名:虠轑鲻"<<endl;
if(x==5) cout<<"姓名:醟朙籩"<<endl;
if(x==6) cout<<"姓名:臡鼐孻"<<endl;
if(x==7) cout<<"姓名:恴赨"<<endl;
if(x==8) cout<<"姓名:絼躢閁鍀"<<endl;
}
void sex(int y)
{
if(y==1) cout<<"男"<<endl;
if(y==2) cout<<"女"<<endl;
if(y==3) cout<<"男"<<endl;
if(y==4) cout<<"男"<<endl;
if(y==5) cout<<"女"<<endl;
if(y==6) cout<<"男"<<endl;
if(y==7) cout<<"女"<<endl;
if(y==8) cout<<"男"<<endl;
}
};
int main()
{
for(int i=0;i<=7;i++)
cout<<"=============================="<<endl;
cout<<"1-8号学生成绩资料查询"<<endl;
cout<<"\t"<<"学号:"<<ID<<endl;
cout<<"\t"<<"姓名:"<<NAME<<endl;
cout<<"\t"<<"性别:"<<SEX<<endl;
cout<<"\t"<<"语文:"<<a<<"\t"<<"网络技术:"<<b<<endl;
cout<<"\t"<<"C++:"<<c<<"\t"<<"数据库:"<<d<<endl;
cout<<"\t"<<"photoshop: "<<e<<"\t"<<"总计: "<<sum<<endl;
cout<<"=============================="<<endl;
if(i>8 || i<1)
return 0;
}