带表头的单向链表实现(C语言)在vs 2008上测试编译并成功执行
头文件linkedlist.h
源文件LinkedList.cpp
运行结果:
Add element "1" successfully.
Add element "2" successfully.
2 1
Element "3" successfully inserted into the list at 2.
2 3 1
The need element is:3
Element removed.
2 1
Destoryed the list.