摘要: #include <iostream>using namespace std;template <class T>class node{public: node<T>* next; T val; node():next(NULL),val(){}; node(T v):next(NULL),val(v){};};template <class T>class my_stack{public: my_stack(); ~my_stack(); void init_stack(); bool is_empty(); size_t get_len(); 阅读全文
posted @ 2011-07-13 09:05 hailong 阅读(285) 评论(2) 推荐(0) 编辑