Hi Toch,
I wasn't the one who suggested putting a Student[] property in the Course class ... that was Kyle. I just marked his reply as a Proposed Answer.
But, to answer your question, you've probably left out the creation/instantiation of the myStudents object:
// Instantiation of five students Student[] myStudents = new Student[5]; myStudents[0].sFirstName = "Anders"; // ... and so on
But, why don't you show us the code you've got now, if the above doesn't help you.
~~Bonnie DeWitt [C# MVP]
No comments:
Post a Comment