雙端棧——入棧與出棧

#include<stdio.h> #define M 100 #define FALSE 0 #define TRUE 1 typedef int StackElemType; typedef struct {  StackElemType Stack[M];  int top[2];                    //top[0]和top[1]分別爲兩個棧頂指示器 }DqStack;
相關文章
相關標籤/搜索