码迷,mamicode.com
首页 >  
搜索关键字:auto registration    ( 14535个结果
C++ Primer 学习笔记_90_用于大型程序的工具 --异常处理[续3]
用于大型程序的工具--异常处理[续3]九、auto_ptr类[接上]5、auto_ptr对象的复制和赋值是破坏性操作 auto_ptr和内置指针对待复制和赋值有非常关键的区别。当复制auto_ptr对象或者将它的值赋给其他auto_ptr对象的时候,将基础对象的所有权从原来的auto_ptr对象转给副本,原来的auto_ptr对象重置为未绑定状态。 auto_ptr strPtr1(new ...
分类:编程语言   时间:2014-06-05 08:34:36    阅读次数:366
C++ Primer 学习笔记_89_用于大型程序的工具 --异常处理[续2]
用于大型程序的工具--异常处理[续2]八、自动资源释放 考虑下面函数:void f() { vector v; string s; while (cin >> s) { v.push_back(s); } string *p = new string[v.size()]; //... delete p; } 在正...
分类:编程语言   时间:2014-06-05 06:07:27    阅读次数:393
前端总结
1. CSS 样式兼容:1) 对Box解析的不一样: height:160px!important; height:200px; padding:5px;2) float闭合 添加一个新的div子元素 clear:both 父元素样式 overflow:auto;zoom:1; after伪类添加....
分类:其他好文   时间:2014-06-04 16:39:58    阅读次数:372
innodb 自增列重复值问题
1 innodb 自增列出现重复值的问题 先从问题入手,重现下这个buguse test;drop table t1;create table t1(id int auto_increment, a int, primary key (id)) engine=innodb;insert into t...
分类:数据库   时间:2014-06-03 13:24:55    阅读次数:503
java异常——RuntimeException和User Define Exception
1.RuntimeExceptionpublic class RuntimeException { public static void main(String[] args) { // TODO Auto-generated method stub String ...
分类:编程语言   时间:2014-06-03 04:47:09    阅读次数:352
css3 position fixed居中的问题
通常,我们要让某元素居中,会这样做: #element{ margin:0 auto; } 如果还想让此元素位置固定呢?一般我们会添加position:fixed,如下: #element{ position:fixed; margin:0 auto; } 但是这样做的结果就是,元素不居中了。这说明fixed使对象脱离了正常文档流。 解决方案: #ele...
分类:Web程序   时间:2014-06-02 23:00:57    阅读次数:327
auto_ptr浅析
auto_ptr是C++标准库中()为了解决资源泄漏的问题提供的一个智能指针类模板(注意:这只是一种简单的智能指针)auto_ptr的实现原理其实就是RAII,在构造的时候获取资源,在析构的时候释放资源,并进行相关指针操作的重载,使用起来就像普通的指针。std::auto_ptr pa(new Cl...
分类:其他好文   时间:2014-06-02 17:12:02    阅读次数:210
Java 多线程编程两个简单的例子
/** * @author gao */ package gao.org; public class RunnableDemo implements Runnable{ @Override public void run() { // TODO Auto-generated method stub for(int i=0;i<10;i++){ System.out.pri...
分类:编程语言   时间:2014-06-01 18:12:33    阅读次数:441
CSS之绝对定位那些事
1.垂直居中有时我们会使用margin: 0 auto;作居中使用。但有的时候我们需要垂直居中,例如在div里面垂直居中显示一张加载中的gif图。下面这种写法就可以完美实现:垂直居中的子容器 { position: absolute; left: 0; right: 0; ...
分类:Web程序   时间:2014-05-31 20:15:24    阅读次数:261
CSS3 Loading(加载)动画效果
1.html 部分 2.css 部分.spinner { margin: 100px auto; width: 50px; height: 60px; text-align: center; font-size: 10px;} .spinner > div { back...
分类:Web程序   时间:2014-05-31 11:52:06    阅读次数:555
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!