- 博客(2)
- 收藏
- 关注
转载 迭代器实现代码
#include using namespace std; template class my_iterator{ //friend class my_iterator; public: my_iterator(T *value=NULL){_value=value;} //~my_iterator()//该不该加? //{ //} T& operator*
2013-12-20 17:11:51 824
原创 # ## @#(字符串化操作符,粘接附,字符化操作符)
1. 字符串化操作符# #include #include using namespace std; #define warn_if(x)\ do{\ if(x)\ printf("warn "#x"\n");\ }while(0); int main() { int eric=3; warn_if(eric==3)
2013-12-20 10:30:33 960
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人