第三章:迭代器概念与traits编程技法 迭代器是一种smart pointer auto_Ptr 是一个用来包装原生指针(native pointer)的对象,声明狼藉的内存泄漏问题可藉此获得解决。 auto_ptr用法如下,和原生指针一模一样:void func() { auto_p...
分类:
其他好文 时间:
2014-09-02 22:34:25
阅读次数:
266
在线笔试题汇总卷一:1、下面的函数中哪个是系统调用而不是库函数______? printf scanf fgetc read print_s scan_s2、某足球队有四名外援,分别来自巴西、荷兰、意大利和美国。他们分别擅长前锋、后卫或守门,其中: ① 美国外援单独...
分类:
其他好文 时间:
2014-09-02 19:34:55
阅读次数:
571
1.首先需要将类包进行扫描,配置如下: <context:component-scan base-package="com.xx">
</context:component-scan> 2.为了确保包能被扫描到,在打包时,需要对“add directory entries”进行勾选,这样路径也会...
分类:
编程语言 时间:
2014-09-02 12:41:44
阅读次数:
187
This article provides the basic DNS configuration steps necessary to use the Single Client Access Name (SCAN) introduced in Oracle 11g Release 2 RAC. ...
分类:
数据库 时间:
2014-08-30 17:42:19
阅读次数:
441
1. NVRAM WARNING的意义
Wi-Fi Driver会去侦测手机上 MT6620 Wi-Fi NVRAM的状况,如果侦测结果有错误的话,会把 Error Code显示在SCAN Result上。
这样的目的是为了提示,把一些隐藏的问题暴露出来。举一个例子:如果没有config好Wi-Fi NVRAM,使得 Wi-Fi的 default value/setting不对,造成...
分类:
其他好文 时间:
2014-08-28 18:07:35
阅读次数:
212
1、region热点:
开始会不断往一个region写,可以预划分region
在rowkey加哈希前缀 对region server数量取余
2、memstore提高写性能,blockcache提高读性能,看需求调整
3、使用bloomfilter,如果大多是scan顺序读,可将block设大些,默认块大小是64K,可以设为128
4、设计好rowkey
5、关闭major comp...
分类:
其他好文 时间:
2014-08-28 16:58:40
阅读次数:
176
Description
Alice and Bob are very smart guys and they like to play all kinds of games in their spare time. the most amazing thing is that they always find the best strategy, and that's why they fe...
分类:
其他好文 时间:
2014-08-28 16:55:48
阅读次数:
303
## SMART 简介 S.M.A.R.T.,全称为“Self-Monitoring Analysis and Reporting Technology”,即“自我监测、分析及报告技术”。是一种自动的硬盘状态检测与预警系统和规范。通过在硬盘硬件内的检测指令对硬盘的硬...
分类:
其他好文 时间:
2014-08-27 19:04:18
阅读次数:
1094
斜着数 1 import java.util.Scanner; 2 3 public class P1313 4 { 5 public static void main(String args[]) 6 { 7 try (Scanner cin = new Scan...
分类:
其他好文 时间:
2014-08-26 09:42:05
阅读次数:
220
PalindromeTime Limit:15000MSMemory Limit:65536KB64bit IO Format:%I64d & %I64uDescriptionAndy the smart computer science student was attending an algor...
分类:
其他好文 时间:
2014-08-25 14:39:54
阅读次数:
182