球钟算法与静态库动态库

This commit is contained in:
lzy
2024-04-18 02:10:36 +08:00
parent 1736d29814
commit 46005cd4fe
8 changed files with 528 additions and 1 deletions

View File

@@ -0,0 +1,30 @@
#ifndef SQSTACK_H__
#define SQSTACK_H__
#define SIZE 32
typedef int type;
typedef struct node_st
{
type data[SIZE];
int top;
} sqstack;
sqstack *st_create(void);
int st_isempty(sqstack *);
int st_push(sqstack *, type *);
/* 取出栈顶元素 */
int st_pop(sqstack *, type *);
/* 查看栈顶元素 */
int st_top(sqstack *, type *);
void st_travel(sqstack *);
void st_destroy(sqstack *);
#endif