魔王语言和异或译码(源码)
代码注释详细,可供参考。
typedefcharSElemType,QElemType;
typedefstruct{
SElemType*base;
SElemType*top;
intStackSzie;
}SqStack;
boolInitStack(SqStack*s);//初始化一个栈
voidAllInStack(char*ch,SqStacks,intt);//所有元素按从右至左的顺序入栈
voidDestroyStack(SqStack*s);//释放栈
intStackLength(SqStack*s);//栈得长度
boolStack
下载地址
用户评论