RAIIRAII是Resource Acquisition Is
Initialization的缩写,是在面向对象(object-oriented)语言中使用的一种编程习惯,主要是用来在C++中处理异常安全资源管理(exception-safe
resource management)。在RAII中...
分类:
其他好文 时间:
2014-07-22 23:14:13
阅读次数:
501
//// RootTableViewController.m// editcell////
Created by liyang on 14-4-29.// Copyright (c) 2014年 liyang. All rights
reserved.//#import "RootTabl...
分类:
移动开发 时间:
2014-07-22 23:10:14
阅读次数:
459
Definition: see
wikihttp://en.wikipedia.org/wiki/Binary_search_tree 1 /* 2 This look up is a
fast operation because you eliminate the half 3 t...
分类:
其他好文 时间:
2014-07-22 23:06:34
阅读次数:
330
Xenia the beginner mathematician is a third year student at elementary school. She is now learning the addition operation.
The teacher has written down the sum of multiple numbers. Pupils should ca...
分类:
其他好文 时间:
2014-07-22 23:05:53
阅读次数:
382
AF解析json出错:
Error Domain=NSCocoaErrorDomain Code=3840 "The operation couldn’t be completed. (Cocoa error 3840.)"
(JSON text did not start with array or object and option to allow fragments not set....
分类:
其他好文 时间:
2014-07-22 23:04:13
阅读次数:
400
Hadoop从2.3.0版本开始支持HDFS缓存机制,HDFS允许用户将一部分目录或文件缓存在HDFS当中,NameNode会通知拥有对应块的DataNodes将其缓存在DataNode的内存当中
集中式缓存管理有着许多显著的优势:
防止那些被频繁使用的数据从内存中清除因为DataNode的缓存由NameNode来管理,applications在做任务安排时可以查询这个缓存的列表,...
分类:
其他好文 时间:
2014-05-01 17:45:58
阅读次数:
379
简单工厂模式:
自己的理解:一个类有多种子类,牵涉到要实例化某种子类,用工厂模式来生成对应的实例对象.比如如下的计算器的设计:Operation:操作类的基类 1 class
Operation 2 { 3 public: 4 Operation(double lhs,double rhs...
分类:
其他好文 时间:
2014-05-01 13:17:25
阅读次数:
419
注意变换思维,然后就是水题。(如果卡时还可以进一步二分优化。)#include long
existed[10000][32];int main(void){ int N;// freopen("poj2443.txt", "r", stdin);
scanf("%d", &N);...
分类:
其他好文 时间:
2014-05-01 09:15:47
阅读次数:
373
SqlLocalDB.exe start v11.0SqlLocalDB.exe info
v11.0SQL Server Management
Stdio添加管道连接实例默认实例名(localDB)\v11.0为了方便管理,LocalDB提供了一个基于命令行的数据库管理工具SqlLocalDB.e...
分类:
数据库 时间:
2014-05-01 09:06:48
阅读次数:
438
package project02_Order_management.util;
import java.sql.ResultSet;
import java.sql.SQLException;
import javax.swing.JTable;
import javax.swing.table.DefaultTableModel;
/**
* 一个JTable工具类
* 进行初始化...
分类:
其他好文 时间:
2014-04-29 13:38:20
阅读次数:
393