I'm trying to make a linked list in C++ such that:
it creates a node for each student in a classroom, AND
that each student has it's own 4 nodes for their 4 test grades.
I've created two structs - studentNode, and gradeNode
studentNode containing "name" and "*next"
gradeNode containing "grade" and "*next"
I'm going crazy as I can get it to create the student nodes properly but I CANNOT get the grade nodes to correspond.
it should basically go like this...
[ pHead ]
[ studentName1 ] --> [ grade1]-->[grade2]-->...[x]
[ studentName2 ] --> [ grade1]-->[grade2]-->...[x]
Any ideas? Thank you..