i have problem in define struct within struct
struct student_detail
{
int id;
string name;
};
struct subject_detail
{
double ass1, ass2;
double test1, test2;
double totalass, totaltest, totalfinal;
double coursework, result, final;
char grade;
};
struct student_subject
{
student_detail record;
subject_detail details[3];
} student_Record[2];
when i was write like this, i see the error say my struct student_subject have problem but i donno what is the problem , so i hope can find the solution about this , thanks