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: ";
"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.