node.h
来自「把中缀表达式转换为后缀表达后」· C头文件 代码 · 共 21 行
H
21 行
#ifndef NODE_H_
#define NODE_H_
enum Error_code{success,overflow,underflow,fail};
template<class Node_entry>
struct Node{
Node_entry entry;
Node<Node_entry> *next;
Node();
Node(Node_entry item,Node<Node_entry> *add_on=NULL);
};
template <class Stack_entry>
Node<Stack_entry>::Node(){
next=NULL;
}
/****************************************************************/
template <class Stack_entry>
Node<Stack_entry>::Node(Stack_entry item,Node<Stack_entry> *add_on){
entry=item;
next=add_on;
}
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?