C_DS_AIgo/sq_list.h

28 lines
402 B
C
Raw Normal View History

2025-03-17 14:00:57 +08:00
#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(void);
2025-03-17 14:00:57 +08:00
// ɾ<><C9BE>
2025-03-17 14:24:44 +08:00
void delete_sq_list(sq_list* list, int pos);
2025-03-17 14:00:57 +08:00
// <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