COMP1511 17s2
— Lecture 19 —
…
Andrew Bennett
<andrew.bennett@unsw.edu.au>
More Linked Lists
Testing + Version Control
Andrew Bennett
<andrew.bennett@unsw.edu.au>
More Linked Lists
Testing + Version Control
assignment 2 groups
update your Game.h
typedef struct _node *Node;
typedef struct _list {
Node head;
} list;
typedef struct _node {
int value;
Node next;
} node;
reference to a node
vs
making (allocating) a new node
how do we know where the list starts?
when might that change?
void functions?
list length?
list sum?
printing a list?
add to end?
add to middle?