C语言里面链表的具体形式是什么
来源:百度知道 编辑:UC知道 时间:2024/06/20 04:49:18
请以一个较完整的代码程序说明~~
谢谢
谢谢
以下是链表表示的栈实现:
//--Symbol.h
//--symbol.h - definitions/declarations for symbols used by other C Header files
#ifndef SYMBOL_H
#define SYMBOL_H
#define STACK_H
#define TRUE 1
#define OK 1
#define YES 1
#define FALSE 0
#define ERROR 0
#define NO 0
#define OVERFLOW -1
#ifndef NULL
#define NULL 0
#endif
typedef unsigned int UINT;
typedef int STATUS;
typedef int BOOL;
#endif /*SYMBOL_H*/
//--stack.h - definitions/declarations for stack operation
#ifndef STACK_H
#define STACK_H
#include "Symbol.h"
#include <malloc.h>
#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
#include <string.h>
#define S_CHAR 1
#define S_SHORT 2
#define S_INT 3
#define S_FLOAT 4
#define S_DOUBLE 5
//-- Stack.h
typedef struct tagNode
{