- 博客(1)
- 收藏
- 关注
转载 数组实现堆栈(DDIRR)
#include<stdio.h> #define STACK_SIZE 64 /*栈大小*/ #define TOP_OF_STACK -1 /*栈顶位置*/ typedef int ElementType; /*栈元素类型*/ #define SUCCESS 0 #define FAILURE -1 /*定义栈结构*/ typedef struct StackInfo { int topOfStack; /*记录栈顶位置*/ ElementType stack[STACK_.
2021-08-10 01:13:46 310 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人