//Doubly linked list#include<iostream>usingnamespacestd;structnode{intdata; node* next; node* prev; };//定义双向链表结构体node* A;node*getnewnode(intx){ node* temp =newnode; temp->data = x; temp->prev =NULL; temp->next =NULL;returntemp; }//创建节点函数voidinsertathead(intx){ n...
I ended up writing my own implementation. I surely can't be the only one needing such a thing, so here it is. Later I also needed a queue, a generic hash table implementation, doubly linked lists and a binary search tree, which triggered development of the slist_queue, genc_chaining_...