模板左值右值的转换
/**
* 功能:模板左值右值的转换
* 时间:2014年7月27日08:18:06
* 作者:cutter_point
*/
#include
#include
#include
using namespace std;
template
auto fcn(It beg, It end) -> typename remove_reference::ty...
分类:
编程语言 时间:
2014-07-31 09:55:27
阅读次数:
312
Hybrid transaction memory systems and accompanying methods. A transaction to be executed is received, and an initial attempt is made to execute the tr...
分类:
其他好文 时间:
2014-07-31 02:26:35
阅读次数:
309
ie使用filter滤镜 仅限于rotate假设对应 css3 rotate(30deg),那么只要将以下矩阵值赋给 matrix filter 对应元素并设置 SizingMethod='auto expand' 即可:rad=30*Math.PI/180;[ cos rad, -sin rad....
分类:
其他好文 时间:
2014-07-30 20:36:24
阅读次数:
276
a 表的字段有id,uid,name,其中id是自增值,CREATE TRIGGER trigger_insert_productAFTER INSERT ON aFOR EACH ROWBEGINinsert into b (uid,name )select NEW.id as d...
分类:
数据库 时间:
2014-07-30 20:23:24
阅读次数:
210
[Xdebug]zend_extension_ts="D:\wamp\bin\php\php5.2.9-2\ext\php_xdebug.dll";是否开启自动跟踪xdebug.auto_trace = On;是否开启异常跟踪xdebug.show_exception_trace = On;是否开启...
分类:
其他好文 时间:
2014-07-30 09:44:33
阅读次数:
177
create table tbl_table ( id integer not null auto_increment, fname varchar(255), lname varchar(255), CONSTRAINT tbl_table PRIMARY KEY (id), un...
分类:
数据库 时间:
2014-07-30 03:17:52
阅读次数:
356
1、把主键定义为自动增长标识符类型 MySql 在mysql中,如果把表的主键设为auto_increment类型,数据库就会自动为主键赋值。例如: ??customers(id??auto_increment????,?name?(??customers(name)??...
分类:
数据库 时间:
2014-07-29 18:28:14
阅读次数:
236
create table teacher(t_id int primary key auto_increment,#auto_increment 自动增长 需要整型,还需要索引t_name varchar(20),t_class varchar(20),days tinyint unsigned);...
分类:
数据库 时间:
2014-07-29 17:21:02
阅读次数:
223
最近学习linux,刚上手gedit,首先要解决的一定是编码的问题,总结一下方法,思路有下:一.用图形化界面设置的方法运行gconf-editor,在弹出的对话框中选择:/apps/gedit-2/preferences/encodings/auto_detected ,双击auto_detecte...
分类:
系统相关 时间:
2014-07-29 13:45:48
阅读次数:
437
cocos2d-x 3.0中场景切换特效比较多,而且游戏开发中也经常需要用到这些特效,来使场景切换时不至于那么干巴,遂这里汇总一下,开发中使用。
场景切换用到导演类Directory,大多数用的都是替换场景,当然也可以用出栈进栈的方式来进行场景的替换,这里以replaceScene来举例。
场景切换特效的应用代码:
auto scene=HelloWorld::createScene();/...
分类:
其他好文 时间:
2014-07-29 13:18:27
阅读次数:
166