#include "stdio.h"
#include "malloc.h"
#define LIST_INIT_SIZE 1000
#define LISTINCREMENT 10
typedef int ElemType;
typedef struct
{
ElemType *elem;
int length;
int listsize;
}Scclist;
void InitList_Scc(Scclist &S)
{
S.elem = (ElemType * ) malloc (LIST_INIT_SIZE * sizeof(ElemType));
if (! S.elem)
printf("运行错误!!");
else
printf("运行成功!!");
S.length = 0;
S.listsize = LIST_INIT_SIZE;
}
void intput(Scclist &S)
{
int i;
printf("请输入线性表的长度:");
scanf("%d",&i);
本内容试读结束,登录后可阅读更多
下载后可阅读完整内容,剩余4页未读,立即下载