Struct, Array? Help.

Oct 31, 2014 at 5:30pm
Basically, I have the struct below for the details of a course including the number of students and their names. What I am trying to figure out is how to have the names as an array so I can store many but dynamic too so I can add new students. Thanks.

1
2
3
4
5
   struct course {
      char coursecode[20];
      int number;
      char name[30];
   };


Oct 31, 2014 at 5:35pm
Last edited on Oct 31, 2014 at 5:35pm
Topic archived. No new replies allowed.