这些函数定义,下面有实现嘛? 还有这些拼写有没有问题呢?函数实现有没有参数的?
需要把实现加过来,也就是这些函数的函数体
有声明, 无实现.
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "SqStack.h"
int main()
{
//测试数据生成
SqElemType *InsertSqElemArray = (SqElemType *)MyMalloc(sizeof(SqElemType) * InsertDataArrayLen);
int i;
for(i=0; i<InsertDataArrayLen; i++)
{
strcpy(InsertSqElemArray[i].StudentNum ,"X666");
strcpy(InsertSqElemArray[i].StudentName,"Sun");
InsertSqElemArray[i].StudentScore = i + 100;
}
//测试顺序栈
SqStack* S = (SqStack*)MyMalloc(sizeof(SqStack));
InitSqStack(S);
JudgeSqStackIsEmpty(S);
printf("SqStack Len : %lld\n",GetSqStackLen(S));
PrintPretty();
//释放内存
free(InsertSqElemArray);
InsertSqElemArray = NULL;
return SuccessFlag;
}
有声明无定义,在后面加上该函数的定义就好了