new document div{position:absolute;width:200px;height:200px;left:0;top:0;right:0;bottom:0;margin:auto;border-radius:50%;backgroun...
分类:
Web程序 时间:
2014-06-18 21:43:53
阅读次数:
358
1 protected void initializeGraphicalViewer() { 2 // TODO Auto-generated method stub 3 4 viewer.setContents(diagram);(2) 5 //...
分类:
其他好文 时间:
2014-06-18 16:50:24
阅读次数:
182
/*! Copyright Cdialog* version 1.0* liscense MIT*/var Cdialog = { showMask: true, //show mask isScroll:false, //auto detect scroll zIndex: 1000...
分类:
其他好文 时间:
2014-06-18 15:06:18
阅读次数:
329
备忘,一段代码:@Override public void init(FilterConfig arg0) throws ServletException { // TODO Auto-generated method stub logger.info("=====...
分类:
Web程序 时间:
2014-06-18 09:14:10
阅读次数:
233
1.增加一个旋转动画 UIImage *loadImage = [UIImageimageNamed:@"detailLoad.png"]; UIImageView *loadImageView = [[[UIImageViewalloc]initWithImage:loadImage ]auto....
分类:
其他好文 时间:
2014-06-17 20:03:06
阅读次数:
210
vi.profile-----------------aliasls=‘ls-F‘aliascls=‘clear‘aliasgrep=‘grep--color=auto‘CLICOLOR="xterm-color"LSCOLORS="gxfxcxdxcxegedabagacad"exportCLICOLORLsCOLORSvi.vimrc-----------------syntaxon
分类:
其他好文 时间:
2014-06-17 17:27:36
阅读次数:
280
//获取一个可写入的全路径
auto path =FileUtils::getInstance()->getWritablePath();
log("%s", path.c_str());
//在这个路径下添加一个json文件
path.append("myhero.json");
rapidjson::Document document;
document.SetObject()...
在计算机编程语言中用来为复杂的声明定义简单的别名,与宏定义有些差异。它本身是一种存储类的关键字,与auto、extern、mutable、static、register等关键字不能出现在同一个表达式中。
typedef声明,简称typedef,为现有类型创建一个新的名字,或称为类型别名,在结构体定义,还有一些数组等地方都大量的用到。
定义一种类型的别名,而不只是简单的宏替换。...
分类:
其他好文 时间:
2014-06-16 19:51:22
阅读次数:
164
1.碰撞检测回调方法编译出错;auto*listener=EventListenerPhysicsContact::create();listener->onContactBegin=CC_CALLBACK_1(HelloWorld::onContactBegin,this);在3.0rc版本中回调函数的参数变为一个,不能使用原来的两个参数;boolHelloWorld::onContactBegin(PhysicsContac..
分类:
其他好文 时间:
2014-06-16 17:03:46
阅读次数:
314
1. auto_ptr 的设计动机:函数操作经常依照下列模式进行:获取一些资源执行一些动作释放所获取的资源那么面对这些资源的释放问题就会出现下面的两种情况:一开始获得的资源被绑定于局部对象,那么当函数退出的时候,这些局部对象的析构函数被自动的调用,从而自动释放掉这些资源;一开始获得的资源是通过某种显...
分类:
编程语言 时间:
2014-06-16 13:43:39
阅读次数:
351