1:expected declaration specifiers or '...' before '
错误代码处:
struct exchange{
int J;
int F;
double cm;
}ex, e[1010];
void quickSort(ex *e, int low, int high);
解决方法:把ex *e改成struct exchange *e;
原因:暂时不知。
2:栈方面的相关操作出错
错误代码处:
#define maxSize 5 //栈的最大长度
typedef int ElemType;
typedef struct{
ElemType data[maxSize]; //存放栈中元素
int top; //栈顶指针
}sqStack;
void InitStack(sqStack *s); //栈的初始化
sqStack *s;
InitStack(s);
解决方法:
sqStack s;
InitStack(&s);
原因:暂时不知。