Snap! is doing what you told it to do. You are setting temp
to menu
, and creating a linked list. When you delete from menu
, temp
will match up with menu
and delete the same item. Read this.
Snap! is doing what you told it to do. You are setting temp
to menu
, and creating a linked list. When you delete from menu
, temp
will match up with menu
and delete the same item. Read this.