Home > Back-end >  Data structure is an error
Data structure is an error

Time:06-05

Please answer a question of data structure

Error reason: undefined identifiers "ElemType", but in front of me defines!

 

Typedef int ELemType;

Compare//typedef int (*) (ElemType ElemType);

Typedef struct SqList
{
ElemType data [LISTSIZE];//storage space of the data element
int length;//store the current number of existing data
} SqList, * SqListPtr;

Void InitList_Sq (SqListPtr sqlist);//initialization function

Int InsertList_Sq_Pos (SqListPtr sqlist, ElemType val, int pos);

CodePudding user response:

In which position error????

CodePudding user response:

CodePudding user response:

The following error is all this

CodePudding user response:

The second letter in the ELemType, case
Behind the typedef there is capital, L use lowercase L, so there is no definition

CodePudding user response:

Fun
reference 4 floor response:
ELemType second letters, capitalization
Typedef uppercase L is there, behind the lowercase L, so there is no defined

Oh, yeah, thank you thank you

CodePudding user response:

I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10581430.html
I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10768339.html
  • Related