Thanks, I'll give that a try.
Type: Posts; User: Chewy
Thanks, I'll give that a try.
OK, to sum up the problem:
As part of an assignment I'm writing a simple database in C which stores student information - an ID number and a unit name. The struct which this is stored in looks like...
Like I said, thanks for you help, but I'm still a bit hazy on how to actually store the data in the array as per my spec (in my first post).
Sorry about the newbie questions, I know it must be...
OK, thanks a lot for that, it helps a lot.
It looks like this:
typedef struct student *student_ptr;
struct student
{
int ID;
int n_units;
char *units[1000];
};
Hi,
I'm creating a simple database in C (part of an assignment, actually). The data fields are stored in a struct which has a numerical ID and, more importantly, an array of chars called units,...