I need to sort this whole structure alphabetically, using fullname.
My structure:
typedef struct emprecord
{
char fullname[20];
float hours;
float deferred;
float payrate;
float reghrs;
float gross;
float fedtax;
float ssitax;
float reggross;
float netpay;
float statetax;
float ovthrs;
float ovtgross;
} emprecord;
Please, any help is appreciated. I've been spending 6 hours non-stop trying to figure this thing out..
My structure:
typedef struct emprecord
{
char fullname[20];
float hours;
float deferred;
float payrate;
float reghrs;
float gross;
float fedtax;
float ssitax;
float reggross;
float netpay;
float statetax;
float ovthrs;
float ovtgross;
} emprecord;
Please, any help is appreciated. I've been spending 6 hours non-stop trying to figure this thing out..