导航

上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 49 下一页

2015年9月13日

摘要: 转自:http://blog.csdn.net/haoel/article/details/1948051测试代码:class Base {public: virtual void f() { cout f(); //Derive::f() b2->f(); //Deri... 阅读全文

posted @ 2015-09-13 19:35 ggzone 阅读(164) 评论(0) 推荐(0) 编辑

2015年9月12日

摘要: 应尽量避免在 where 子句中使用 or 来连接条件,否则将导致引擎放弃使用索引而进行全表扫描,如: select id from t where num=10 or num=20 可以这样查询: select id from t where num=10 unio... 阅读全文

posted @ 2015-09-12 21:21 ggzone 阅读(81) 评论(0) 推荐(0) 编辑

摘要: 应尽量避免在 where 子句中使用 or 来连接条件,否则将导致引擎放弃使用索引而进行全表扫描,如: select id from t where num=10 or num=20 可以这样查询: select id from t where ... 阅读全文

posted @ 2015-09-12 21:21 ggzone 阅读(109) 评论(0) 推荐(0) 编辑

2015年9月11日

摘要: 1.下面程序在x64下结果struct st{ int a; long long b; double c;};int main() { st s; cout fun(); delete a; system("pause"); retu... 阅读全文

posted @ 2015-09-11 19:45 ggzone 阅读(187) 评论(0) 推荐(0) 编辑

摘要: 1.下面程序在x64下结果struct st{ int a; long long b; double c;};int main() { st s; cout fun(); delete a; system("pau... 阅读全文

posted @ 2015-09-11 19:45 ggzone 阅读(119) 评论(0) 推荐(0) 编辑

2015年9月5日

摘要: http://zm8.sm-img2.com/?src=http%3A%2F%2Fwww.w2bc.com%2FArticle%2F38320&uid=57422b713ac761e653af7b327bfd9c21&hid=72d420808a7f5a5... 阅读全文

posted @ 2015-09-05 11:05 ggzone 阅读(211) 评论(0) 推荐(0) 编辑

摘要: http://zm8.sm-img2.com/?src=http%3A%2F%2Fwww.w2bc.com%2FArticle%2F38320&uid=57422b713ac761e653af7b327bfd9c21&hid=72d420808a7f5a549c1810ca5934... 阅读全文

posted @ 2015-09-05 11:04 ggzone 阅读(233) 评论(0) 推荐(0) 编辑

摘要: VS2015下测试: decltype:class Foo {};int &func_int_r(void) { int i = 0; return i; };int &&func_int_rr(void) { return 0; };int func_int(void) { ret... 阅读全文

posted @ 2015-09-05 10:54 ggzone 阅读(321) 评论(0) 推荐(0) 编辑

摘要: VS2015下测试: decltype:class Foo {};int &func_int_r(void) { int i = 0; return i; };int &&func_int_rr(void) { return 0; };int func_in... 阅读全文

posted @ 2015-09-05 10:54 ggzone 阅读(311) 评论(0) 推荐(0) 编辑

2015年9月4日

摘要: 返回值优化(Return Value Optimization,简称RVO),是这么一种优化机制:当函数需要返回一个对象的时候,如果自己创建一个临时对象用户返回,那么这个临时对象会消耗一个构造函数(Constructor)的调用、一个复制构造函数的调用(Co... 阅读全文

posted @ 2015-09-04 15:06 ggzone 阅读(134) 评论(0) 推荐(0) 编辑

上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 49 下一页