摘要: #include using namespace std; template bool increSort(T &a, T &b) { return (a > b); } template bool decreSort(T &a, T &b) { return (a void Sort(T* array, int len, bool(*compare)(T&, T&)) ... 阅读全文
posted @ 2018-12-25 07:39 super行者 阅读(295) 评论(0) 推荐(0) 编辑
摘要: #include #include using namespace std; template class Stack { public: Stack() { } ~Stack() { } void push(T &e) { m_list.push_front(e); } void pop()... 阅读全文
posted @ 2018-12-25 06:37 super行者 阅读(189) 评论(0) 推荐(0) 编辑