I'm trying to complete a homework exercise for college, but I'm stuck on one point. The assignment is to write a program that marshals and unmarshals several Student objects. The marshaling is done by the StudentMarshalling class.
The problem I'm having is this: The Student object *requires* the name and score array of the student to be passed in when the student is created. So we can't use a for loop to assign values to the Student data. Nor can we do this:
Student* foo = new Student;
As such I'm trying to figure out how my StudentMarshall.unmarshal method can return to my main.cpp file an array of Student objects.
Can anyone assist me on this (and my apologies for any lack of clarity in my explanation!)