这个截图工具能实现最主要的截图功能,并保存为bmp图片。编写环境是vs2005,使用Unicode,基于对话框。没什么难度,直接看代码项目名称为CutOut// CutOutDlg.h : 头文件//#pragma once#include // CCutOutDlg 对话框class CCutOu...
分类:
其他好文 时间:
2014-08-01 19:37:32
阅读次数:
315
题意: Given a sequence a_1,a_2,...,a_n, if we can take some of them(each a_i can only be used once), and they sum to k, then we say this sequence is a ....
分类:
移动开发 时间:
2014-08-01 18:43:02
阅读次数:
350
Problem Description:
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.
Do not allocate extra space for another array, you ...
分类:
其他好文 时间:
2014-08-01 00:08:50
阅读次数:
274
分享下PHP return语句的另一个作用,在bbPress的代码中看到的一个奇葩使用方法。一直以为,return只能出现在函数中,直到看了bbPress的代码:<?phprequire_once('./bb-load.php');bb_repermalink(); // The magic hap...
分类:
Web程序 时间:
2014-07-31 19:57:57
阅读次数:
257
The only difference with version I is: one number can only be used once:class Solution {public: vector > ret; struct Rec { Rec() : sum...
分类:
其他好文 时间:
2014-07-31 05:22:25
阅读次数:
239
Noldbach problem
time limit per test
2 seconds
memory limit per test
64 megabytes
input
standard input
output
standard output
Nick is interested in prime numbers. Once h...
分类:
数据库 时间:
2014-07-30 01:07:23
阅读次数:
308
+ (ZSDataHandle *)shareDataHandle{ static ZSDataHandle *dataHandle = nil; static dispatch_once_t onceToken; dispatch_once(&onceToken, ^{ if (dat...
分类:
数据库 时间:
2014-07-29 13:51:18
阅读次数:
290
上篇博文对中断描述符表(IDT)中异常和非屏蔽中断部分的初始化做了说明,这篇文章将分析中断部分的初始化。在上篇博文中,可以看到,内核在setup_once汇编片段中,对中断和异常部分做了初步的初始化,用early_idt_handlers函数的地址来初始化异常门描述符,用ignore_int函数地址...
分类:
其他好文 时间:
2014-07-29 10:57:26
阅读次数:
352
题目:Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.Do not allocate extra space....
分类:
编程语言 时间:
2014-07-27 21:26:35
阅读次数:
267
什么是单例单例模式是一种常用的软件设计模式。在它的核心结构中只包含一个被称为单例类的特殊类。通过单例模式可以保证系统中一个类只有一个实例而且该实例易于外界访问,从而方便对实例个数的控制并节约系统资源。如果希望在系统中某个类的对象只能存在一个,单例模式是最好的解决方案。iOS开发中如何使用单例传统的单...
分类:
移动开发 时间:
2014-07-27 10:45:22
阅读次数:
246