I recently looked at linked list for saving large amount of data. However I am stuck at coming up with a good way to save data for linked list of linked list.
The following is a pseudo code of what I was trying to accomplish
struct Student
{
string Name;
}
struct Classroom
{
string Teacher;
<list> Student *student;
};
struct School
{
string School_Name;
<list> Classroom *room;
};
struct State
{
string State_Name;
<list> School *school;
};
I was wondering if this how you implement a linked list within a linked list. So when I read through an XML file. I can assign multiple schools under one State, and multiple Classrooms to one School and so on.