數據結構(嚴慰敏)配套純c代碼實驗十
typedef int InfoType // 定義其它數據項的類型
typedef int KeyType // 定義RedType類型的關鍵字為整型
struct RedType // 記錄類型(同c10-1.h)
{
KeyType key // 關鍵字項
InfoType otherinfo // 其它數據項
}
typedef char KeysType // 定義關鍵字類型為字符型
#include"c1.h"
#include"c10-3.h"
void InitList(SLList &L,RedType D[],int n)
{ // 初始化靜態(tài)鏈表L(把數組D中的數據存于L中)
char c[MAX_NUM_OF_KEY],c1[MAX_NUM_OF_KEY]
int i,j,max=D[0].key //
標簽:
typedef
int
InfoType
KeyType
上傳時間:
2016-03-03
上傳用戶:2404