28 lines
402 B
C
28 lines
402 B
C
|
#ifndef SQ_LIST_H
|
|||
|
#define SQ_LIST_H
|
|||
|
#define MAX 100
|
|||
|
|
|||
|
typedef struct sq_list
|
|||
|
{
|
|||
|
int data[MAX];
|
|||
|
int length;
|
|||
|
} sq_list;
|
|||
|
|
|||
|
// <20><>ʼ<EFBFBD><CABC>
|
|||
|
sq_list* init_sq_list(sq_list* name);
|
|||
|
|
|||
|
// ɾ<><C9BE>
|
|||
|
void delete_sq_list(sq_list* list);
|
|||
|
|
|||
|
// <20>滻
|
|||
|
void replace_sq_list(sq_list* list, int pos, int value);
|
|||
|
|
|||
|
// <20><><EFBFBD><EFBFBD>
|
|||
|
void insert_sq_list(sq_list* list, int pos, int value);
|
|||
|
|
|||
|
// <20><>ӡ
|
|||
|
void print_sq_list(sq_list* list);
|
|||
|
|
|||
|
#endif
|
|||
|
|