i got two structs. and the second struct contains an array of the first struct
where MAX = 20. i also have a function which adds a student to the list. my problem is how can i make the program store all info i gathered into the first "part/space/value" of the student array?Code:typedef struct{ char studentNumber[MAX]; char famName[MAX]; char firstName[MAX]; char midName[MAX]; char course[MAX]; int year; int age; char gender; int final; } studentsInfo; typedef struct { studentsInfo student[MAX]; int size; //size of all students listed }listOfStudents;
the information above maybe lacking because im still not done with the program and it still looks ******. i can futher add details if you ask![]()



LinkBack URL
About LinkBacks




