two items not declarin when debuging

hello,
i have a program its a struct
struct new
{ string fname;
string lname;
int id;
};
struct school
{ string nameofschool;
string course;
new student[20];

void readstud(int class@[], int num)
{ int a;
for(a=0;, a<20;, a++)
{
cin>>student[a].fname>>student[a].lname;
}
};//end
};
};//end struct

int main()
{
int a,b, c;

cout<<"enter ur first name: ";
cout<<"enter your last name: ";

readstud(a, 20);

for(b=0; b<20; b++)
{
cout<<stuent[b].fname<<student[b].lname;
}

return o;
}

the problem am getting is that readstud is not declaring in the main also it saying student not declare can some one help thanks
cout<<student
Last edited on
"new" is a reserved keyword and not available as a variable label. You didn't close the declaration of struct school with an end brace and semicolon. I have no idea what "int class@[]" is supposed to be.
ok i see thank you ad int classA[]
Topic archived. No new replies allowed.