?? stacknode.h
字號:
# ifndef STACKNODE_H
# define STACKNODE_H
# include <iostream.h>
# include <stdlib.h>
template <class Type>
class stack;
template <class Type>
class stacknode
{
public:
stacknode(Type d=0,stacknode<Type> *next=NULL):data(d),link(next){}
friend class stack<Type>; //友元類
private:
Type data; //數據
stacknode<Type> *link; //指向下一個結點
};
# endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -