摘要: Switch比if else快 阅读全文
posted @ 2011-07-06 11:38 嗷嗷 阅读(2155) 评论(0) 推荐(0) 编辑
摘要: Partly Specializations of Class Templates is allowed 阅读全文
posted @ 2011-07-04 12:17 嗷嗷 阅读(202) 评论(1) 推荐(1) 编辑
摘要: For class templates, member functions are instantiated only when they are used. This, of course, saves time and space. 阅读全文
posted @ 2011-07-04 11:48 嗷嗷 阅读(179) 评论(0) 推荐(0) 编辑
摘要: automatic type conversation is not allowed in Template Argument Deduction 阅读全文
posted @ 2011-07-02 22:55 嗷嗷 阅读(285) 评论(0) 推荐(0) 编辑
摘要: class和typename有啥区别呢? 阅读全文
posted @ 2011-07-02 15:20 嗷嗷 阅读(759) 评论(0) 推荐(0) 编辑
摘要: The Definitive C++ Book Guide and List(http://stackoverflow.com/questions/388242/the-definitive-c-book-guide-and-list) 阅读全文
posted @ 2011-06-30 21:19 嗷嗷 阅读(250) 评论(1) 推荐(0) 编辑
摘要: i = ++i + 1; is well defined in C++0x. 阅读全文
posted @ 2011-06-30 12:10 嗷嗷 阅读(349) 评论(3) 推荐(0) 编辑
摘要: #include <vector>#include <iostream>using namespace std;int _tmain(int argc, _TCHAR* argv[]){ vector<int> v; v.push_back(123456); v.push_back(12); vector<int>::iterator iter; iter = v.begin(); int *p = iter.operator->(); vector<int> *pp = &v; cout<<"ad 阅读全文
posted @ 2011-05-16 10:50 嗷嗷 阅读(199) 评论(1) 推荐(0) 编辑
摘要: class AA{public: operator int*() {return NULL;} int* operator ()() { return NULL;} int* operator ()(int k) {return NULL;} };int main(){ AA a; int *p; p = a; p = a(); p = a(2); return 0;} 阅读全文
posted @ 2011-03-24 12:09 嗷嗷 阅读(826) 评论(3) 推荐(1) 编辑
摘要: 鸟语又一次成为我生命中不可承受之痛。已经是一个不得不解决的问题了。计划很简单: 每天两个小时,坚持一年。什么学习方法都是浮云,只要记住两条,不要看任何中文,练听力不要看原文。 阅读全文
posted @ 2011-01-18 12:10 嗷嗷 阅读(260) 评论(5) 推荐(2) 编辑