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(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