i have struct called firing solution consists of following items:
struct firing_solution_int { my_time time; int degree; double x; double y; //edit: fsnode next*; };
node c file
struct node_int { void *data; node next; } node_int; //constructor' node void init_node(node *n,void *o) { *n = (node)malloc(sizeof(struct node_int)); (*n)->data = o; (*n)->next = null; }
node header file
struct node_int; typedef struct node_int *node;
firing solution header file
struct firing_solution_int; typedef struct firing_solution_int *firing_solution;
bearing in mind have created node file , have created getters , setters firing solution struct , have set time.c file, need put data linked list of can traverse , print out.
an example of print out is:
time 12:00 degree 45 @ coords 45 150 time 12:02 degree 47 @ coords 48 140
what need input data? if more of code needed construct appropriate answers please let me know.