分文件 创建顺序表
sequence.h
#ifndef _SEQUENCE_H__
#define _SEQUENCE_H__
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#define MAX 20
typedef struct sequence{
char name[MAX];
int len;
}seqList,*seqListPtr;
seqListPtr createSeq();
#endif
sequence.c
main.c
// 练习一
struct K {24
double a;
char b;
char c;
double d;
};
// 练习二
struct L {24
int a;
double b;
char c;
};
// 练习三
struct M {24
char a;
int b;
char c;
double d;
};
// 练习四
struct N {16
int a;
char b;
double c;
};
// 练习五
struct O {8
char a;
short b;
char c;
short d;
};
// 练习六
struct P {12
char a;
char b;
int c;
char d;
};
// 练习七
struct Q {16
double a;
int b;
short c;
char d;
};
// 练习八
struct R {8
char a;
char b;
char c;
int d;
};
// 练习九
struct S {16
double a;
char b;
short c;
int d;
};
// 练习十
struct T {24
int a;
double b;
short c;
};