摘要:
#include "stdio.h"#include "string.h"#include "stdlib.h"//#include typedef int ElemType;/* 创建链表式栈结构体*/typedef struct Stack_Node{ ElemType data; struct Stack_Node *next;}stack_node;/* 初始化栈*/stack_node* initStack(){struct Stack_Node *top;top=(struct Stack_Node*)malloc(siz 阅读全文
posted @ 2013-09-18 15:29
露水上的青蛙
阅读(539)
评论(0)
推荐(0)
摘要:
#include "stdio.h"#include "string.h"#include "stdlib.h"//#include #define stack_size 2 //定义栈的初始化空间大小#define stack_add_size 3typedef int ElemType;typedef struct sqstack{ElemType *top;ElemType *bottom;int stacksize;//记录当前已分配的空间}sqStack;sqStack initStack(){sqstack s;s.bot 阅读全文
posted @ 2013-09-18 14:45
露水上的青蛙
阅读(358)
评论(0)
推荐(0)

浙公网安备 33010602011771号