posted @ 2015-09-13 19:35 ggzone 阅读(164) 评论(0) 推荐(0) 编辑
摘要:
转自:http://blog.csdn.net/haoel/article/details/1948051测试代码:class Base {public: virtual void f() { cout f(); //Derive::f() b2->f(); //Deri... 阅读全文
摘要:
应尽量避免在 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) 编辑
摘要:
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) 编辑
摘要:
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) 编辑