数据结构上机实验:单链表操作
摘要:
#include #include using namespace std;typedef struct Node{ char c; struct Node *next;}*LinkList,LNode;//初始化单链表hLinkList Init(LinkList &h){ h=(LNode*)malloc(sizeof(LNode)); if(h==NULL) { coutnext=NULL; return h;}//尾差法插入元素void InsertNum(LinkList &h,int n){ LinkList r,s; ... 阅读全文
posted @ 2014-03-19 21:02 恒邪 阅读(165) 评论(0) 推荐(0) 编辑