链式队列的创建

#ifndef __LINKSTACK_H__
#define __LINKSTACK_H__

#include <stdio.h>
#include "LinkStack.h"

#include "stdio.h"


typedef int StackData;

typedef struct _node
{
StackData data;
struct _node *next;
}Node;


typedef struct _linkStack
{
Node *top;

}Link;

Link *creat()
{
Link* node = (Link*)malloc(sizeof(Link0/
sizeof(char));

if (node == NULL)
return FALSE;

node->top = NULL;

return node;
}

猜你喜欢

转载自blog.csdn.net/inconceivableccx/article/details/76795581