摘要:
#ifndef STACK_HPP#define STACK_HPP#include <deque>#include <exception>template <class T>class stack{protected:std::deque<T> c;public:class ReadEmptyStack : public std::bad_exce... 阅读全文
摘要:
#include "algostuff.hpp"//见http://www.cnblogs.com/qnbs1/articles/1709197.htmlusing namespace std;int main(){vector<int>coll;INSERT_ELEMENTS(coll,3,7);INSERT_ELEMENTS(coll,3,9);INSERT_ELEMENTS(co... 阅读全文