头文件编写 #include <stdio.h> #include <stdlib.h> /** *共享栈:使用数组实现 */ //最大存储容量 #define MaxSize 100 //数据元素类型 typedef int ElemType;