S
Simon Mansfield
Hey everyone, I have created a struct called employee, as follows:
struct employee {
int pid;
char name[3];
char job[40];
int hourlyRate;
struct employee *next;
}
Which will become a linked list (obviously!).. Now I want to add one more
field, a "appointment" field... Now the idea is that when a customer wants
to book the particular employee they put their name in the corresponding
array slot. ( eg. Ms. Saunders wants 10 am should be appointments [10] =
"Ms. Saunders" ) however I have no idea of how to create an array of
strings.. or even if it's possible.. Bit of a noob, i know! (But u gotta
start at some point!!)
Any other suggestions will be welcomed and the entired project can be sent
via e-mail upon request if you wish to have a closer look..
Simon
struct employee {
int pid;
char name[3];
char job[40];
int hourlyRate;
struct employee *next;
}
Which will become a linked list (obviously!).. Now I want to add one more
field, a "appointment" field... Now the idea is that when a customer wants
to book the particular employee they put their name in the corresponding
array slot. ( eg. Ms. Saunders wants 10 am should be appointments [10] =
"Ms. Saunders" ) however I have no idea of how to create an array of
strings.. or even if it's possible.. Bit of a noob, i know! (But u gotta
start at some point!!)
Any other suggestions will be welcomed and the entired project can be sent
via e-mail upon request if you wish to have a closer look..
Simon