hey guys, noob here. Im just wondering if anyone can help me with the code for this exercise. the exercise says
modify the header file list.h in section 12.9 by replacing the typedef line with
write a function create_list() that transforms an array of type DATA into aa linear linked list. Write another function that counts the number of people above both a given weight.
the link.h from section 12.9 is as follows:
----------------------------------------------------------
if someone can help me with the code for this exercise that would be great! thanx!
modify the header file list.h in section 12.9 by replacing the typedef line with
Code:
struct data { char name [10]; int age; int weight; }; typedef struct data DATA;
the link.h from section 12.9 is as follows:
Code:
#include <stdio.h> typedef char DATA; struct linked_list { DATA d; struct linked_list *next; }; typedef struct linked_list ELEMENT; typedef struct linked_list LINK;
if someone can help me with the code for this exercise that would be great! thanx!
Comment