摘要:
Switch比if else快 阅读全文
摘要:
Partly Specializations of Class Templates is allowed 阅读全文
摘要:
For class templates, member functions are instantiated only when they are used. This, of course, saves time and space. 阅读全文
摘要:
automatic type conversation is not allowed in Template Argument Deduction 阅读全文
摘要:
class和typename有啥区别呢? 阅读全文
摘要:
The Definitive C++ Book Guide and List(http://stackoverflow.com/questions/388242/the-definitive-c-book-guide-and-list) 阅读全文
摘要:
i = ++i + 1; is well defined in C++0x. 阅读全文
摘要:
#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 阅读全文
摘要:
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;} 阅读全文
摘要:
鸟语又一次成为我生命中不可承受之痛。已经是一个不得不解决的问题了。计划很简单: 每天两个小时,坚持一年。什么学习方法都是浮云,只要记住两条,不要看任何中文,练听力不要看原文。 阅读全文