二叉树查关键值.cpp

contrary_87846 5 0 cpp 2023-05-30 23:05:05

#include #include using namespace std; const int StackSize = 100; char target; class Stack { public: Stack() { top = -1; } void Push(char x) { if (top == StackSize - 1) throw "上溢"; data[++top] = x; } char Pop() { if (top == -1) throw "下溢"; char x=data[top]; top--; return x; } char GetTop() { if(top

用户评论
请输入评论内容
评分:
暂无评论