能力者
发表于 2015-10-22 21:08:26
参考学习一下
沐秋
发表于 2015-10-23 19:04:44
来研究研究
ufo025174
发表于 2015-10-25 23:06:02
支持小甲鱼~\(≧▽≦)/~
liuchaoli
发表于 2015-11-22 21:57:14
我想看看内容
假小鹿
发表于 2015-11-25 12:36:41
哦
宝元码
发表于 2015-11-30 22:00:09
#include<stdio.h>
#include<stdlib.h>
#define SGFHDF 50
#define FHHGJG 10
typedef char ElemType;
typedef struct
{
ElemType *base;
ElemType *top;
int stackSize;
}sqStack;
void InitStack(sqStack *s)
{
s->base=(ElemType *)malloc(STACK_INIT_SIZE * sizeof(ElemType));
if(!s->base)
{
exit(0);
}
s->top=s->base;
s->stackSize=STACK_INIT_SIZE;
}
void push(sqStack *s,ElemType e)
{
if(s->top-s->base>=s->stackSize)
{
s->base=(ElemType *)realloc(s->base,(s->stackSize+SATCKINCREMENT) * sizeof(ElemType));
if(!s->base)
{
exit(0);
}
s->top=s->base+s->stackSize;
s->stackSize=s->stackSize+SATCKINCREMENT;
}
*(s->top)=e;
s->top++;
}
void Pop(sqStack *s,ElemType *e)
{
if(s->top==s->base)
{
return ;
}
*e=*--(s->top);
}
int StackLen(sqStack s)
{
return (s.top-s.base);
}
main()
{
}
预感熄烟
发表于 2015-11-30 22:19:16
小甲鱼,你真好
EzioA
发表于 2015-11-30 23:04:30
学习学习
卧龙居士
发表于 2015-12-6 20:27:33
ghh
hiwch
发表于 2015-12-7 08:22:20
嗯嗯
hiwch
发表于 2015-12-7 08:23:30
爽
buhuigeng
发表于 2015-12-16 13:18:55
烦烦烦烦烦烦烦烦烦烦烦烦烦烦烦烦烦烦发
zhangyu
发表于 2015-12-16 19:38:14
围观围观
yinweishifeicha
发表于 2016-1-9 20:43:58
正好是布置的作业啊!!!!要看要看1!!
苏北小毛驴
发表于 2016-1-12 15:51:24
看一下代码是什么
文刀弓虽
发表于 2016-1-21 16:24:07
不错
GW17195
发表于 2016-1-28 14:15:46
围观大神{:5_92:}
阿里爸爸
发表于 2016-2-25 20:47:17
支持一下
墨染夜殇
发表于 2016-3-10 23:22:09
看看
墨染夜殇
发表于 2016-3-10 23:22:53
强烈支持楼主ing!!!!