Ok, I am trying to figure out how to purse this current project which deals with dynamic allocation and linked list
Here is the information I am given the following two structs
struct employee
{
int ssn;
string name;
float hours;
assignment * list;
};
struct assignment
{
string proj;
float hours;
assignment *next;
};
Objectives:
read from a file into a dynamic array of employee struct, size of array will be 3 when program starts, int ssn will serve as unique identifer.
read the second file and add a new node to the employee's linked list of assigned projects. The final arrangement
will be an array (dynamically allocated) of struct1 where each employee contains a pointer to a linked
list of the projects to which they are assigned. The employees in the array will be in ascending order by
SSN. The projects assigned to each employee will be in descending order by the hours assigned.
Any tips to get me going?