算法导论第十章 基本数据结构实现(栈,队列,链表),课后题答案
栈栈实现一种后进先出的策略,入栈和出栈,都是通过栈顶指针来操作。#include <stdio.h>
#include <stdbool.h>
#include <time.h>
#include <stdlib.h>#define SIZE 10
typedef struct{
int array[SIZE];
int top;
}T_stack;bool Empty(T_stac
原创
2015-10-19 15:44:32 ·
822 阅读 ·
0 评论