问题描述
|
我的C程序具有这样的堆栈类型定义:
typedef struct {
char T[MaxEl+1][MAX_CHAR];
address TOP;
boolean alive;//ignore this
} Stack;
并创建一个函数:
void expandP(Stack stack[],int i,char input[]) {//variable stack is array of Stack
..
Stack temp;
CreateEmpty(&temp);
..
copyStack(&temp,stack[i]);
}
void CreateEmpty(Stack *S) {
Top(*S) = Nil;
isAlive(*S) = false;
}
void copyStack(Stack* out,Stack in) {
}
运行时给出错误分段错误,编译时不给出警告
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)