发布时间:2016-12-21 14:07:16
#include<stdio.h>typedef int elemtype;typedef struct node{elemtype val;struct node *next;}link;typedef link *Link;Link creatlink(void);void overlink(Link head);elemtype isemptylink(Link head);elemtype linklength(Link head);elemtype insertnode(Link head,elemtype pos,elemtyp.........【阅读全文】
发布时间:2016-12-14 15:52:01
typedef int eletype;typedef struct node{eletype *top;eletype *base;eletype stacksize;}stack;eletype pop(stack *s,eletype *val){if(s->base == s->top){printf("pop stack error!\n");return -1;}return *val = *--s->top;}eletype push(stack *s,eletype *val){if((s->base - s->to.........【阅读全文】