#include "VectorList.h" #ifndef NULL #define NULL (void *)0 #endif VectorList::VectorList() { data = NULL; } VectorList::~VectorList() { llist *tmp; llist *head; head = data; while (head) { tmp = head->next; delete head; head = tmp; } } void ReplaceItem(int index, void *item) { llist *head; for (head = data; head; head = head->next) { if (head->index == index) { head->data = item; break; } } }