#include <stdio.h>
#include <malloc.h>
typedef int DataType;
typedef struct stacknode
{
DataType data;
struct stacknode *next;
} LinkStack;
LinkStack *InitStack()
{
LinkStack *S;
S = NULL;
return S;
}
int EmptyStack(LinkStack *S)
{
if (S == NULL)
return 1;
else
return 0;
}
LinkStack *Pop(LinkStack *S, DataType *x)
C语言用栈的思想实现十进制转二进制
最新推荐文章于 2024-04-19 09:51:02 发布