摘要:
http://wenku.baidu.com/view/4ecc6a93daef5ef7ba0d3c3a.html经常聊天的人一定要看哦1.当你收到“你干嘛呢?” 实际上是想说“我想你了” 2.当你收到“呵呵”,多是没笑或者傻笑 3.但如果是“哈哈” “嘿嘿”或者“嘎... 阅读全文
摘要:
This article appeared in C++ Report, June 1995 issue. Traits: a new and useful template techniqueby Nathan C. Myers Internationalizing the Standard C++ Library requiredinventing some novel technique... 阅读全文
摘要:
函数的“template参数推导机制”:根据函数的参数类型推导出模板类型// 示例template <typename T>T Add( T a, T b) { return ( a + b );}// main.cppint main() { intx = 9; int y = 1; int tmp = Add(x, y); // 这里编译器自动推导出模板类型... 阅读全文