#include<stdio.h>
#include<stdlib.h>
#define LEN sizeof(arr)/sizeof(arr[0])
void swap(int *p , int *q)
{
int temp = *p;
*p = *q;
*q = temp;
}
void arr_print(int *arr, int len)
{
int i;
for (i=0; i<len; i++)
printf("%d ",arr[i]);
printf("...
第一步.h文件
typedef struct node {
int data;
struct node* prev;
struct node* next;
} Node;
typedef struct stack {
struct node* head;
} Stack;
void stack_init(Stack* stack);
void stack_push(Stack* stack, int data);
int stack_pop(Stack* stack);
int stack_top(Sta...