- 博客(4)
- 收藏
- 关注
原创 模板元编程第九章练习(非答案)
9-0 #ifdef NO_MI_EBO templateclass storage; template class storage_imp:private T{ protected: public: storage_imp(T const& t):T(t){} T const& get_t(){return *this;} }; template class storage:public
2015-12-13 13:51:03 348
原创 hihocoder#1103 栈
#include<iostream> #include<string> #include<string.h> #include<algorithm> #include<fstream> #include<stack> #include<map> using namespace std; #define lch(i) ((i)<<1) #define rch(i) ((i)<<1|
2015-12-06 22:29:27 251
原创 模板元编程第六章课后习题(非答案)20151206
//6-0 template<bool,class T1,class T2> struct T1smallest{ typedef T1 type; }; template<class T1,class T2> struct T1smallest<false,T1,T2>{ typedef T2 type; };template<class T1,class T2> struct T
2015-12-05 16:25:14 701
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人