unit DateUtils;
interface
uses
SysUtils, Math, Types;
// 把完整时间分解成日期和时间两部分
function DateOf(const AValue: TDateTime): TDateTime;
function TimeOf(const AValue: TDateTime): TDateTime;
// ...
分类:
其他好文 时间:
2015-03-12 11:38:35
阅读次数:
177
1.题目Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array [?2,1,?3,4,?1,2,1,?5,4],the contiguous subarray [4,?1,2,1] has...
分类:
其他好文 时间:
2015-03-12 11:38:49
阅读次数:
120
//六角填数
//2015-03-12
//287283991@qq.com
#include
#include
#include
#include
using namespace std;
#define eps 10e-10
#define N 15
static int A[N],vis[N];
static int t[7];
void dfs(in...
分类:
其他好文 时间:
2015-03-12 11:37:49
阅读次数:
210
xml文档是由一组使用唯一名称标识的实体组成的。始终以一个声明开始,这个声明指定该文档遵循XML1.0的规范。XML也有一种逻辑结构,在逻辑上,文档的组成成部分包括声明,元素,注释,字符引用和处理指令。
以下是代码片段:
2...
分类:
其他好文 时间:
2015-03-12 11:36:42
阅读次数:
211
两副图让你彻底明白同步IO和异步IO的区别...
分类:
其他好文 时间:
2015-03-12 11:37:06
阅读次数:
174
题目链接:Spiral Matrix
Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order.
For example,
Given the following matrix:
[
[ 1, 2, 3 ],
[ 4, 5, 6 ...
分类:
其他好文 时间:
2015-03-12 11:35:28
阅读次数:
124
题目链接:Jump Game
Given an array of non-negative integers, you are initially positioned at the first index of the array.
Each element in the array represents your maximum jump length at that position.
...
分类:
其他好文 时间:
2015-03-12 11:38:00
阅读次数:
123
把UIColor(纯色值)对象转化成UIImage对象...
分类:
其他好文 时间:
2015-03-12 11:37:56
阅读次数:
115
安装好QT以后法相中文输入不进去,也不能显示中文字符,会出现乱码
废话不多说,下面是我的解决方案
首先要下载ibus QT支持的中文输入法
拼音输入法
上面图样吧编码改为gb2312
打开QT安装包下面的bin文件夹下面的qtconfig 把字体设置为宋体 ,如下图
这样就ok了,不行的找我。
后面编程...
分类:
其他好文 时间:
2015-03-12 11:37:35
阅读次数:
154
0. doubango
doubango telecom是一个公司,主页:http://doubango.org/
这个公司下面有好多好东西,都是开源的,而doubango就是一个开源框架
1. telepresence
主页:https://code.google.com/p/telepresence/
按照说明下载编译,期间会遇到各种问题,请自行google
我的环境是ce...
分类:
其他好文 时间:
2015-03-12 11:35:24
阅读次数:
169
IOE分别指IBM(国际商用机器公司)、Oracle(甲骨文)、EMC(易安信),三家企业分别是小型机、数据库和高端存储的领导厂商。中美关系、信息安全等因素不断掺杂其中,去IOE正变得越来越复杂,在技术、利益、安全、产业转移等多重因素的交织下,去IOE将走向何方?...
分类:
其他好文 时间:
2015-03-12 11:35:41
阅读次数:
176
6.3.1 Object类它是所有类,数组,枚举类的父类
Java允许把所有类型的对象赋给Object类型的变量
它有如下几个方法
boolean equals(Object obj):
protected void finalize():当系统没有引用变量引用到该对象时,垃圾回收器调用此方法来清理该对象的资源
Class getClass():
int hashCode():
Str...
分类:
其他好文 时间:
2015-03-12 11:34:45
阅读次数:
178
通过纯真IP库,查询出IP地址的归属地 源代码下载地址:http://www.zuidaima.com/share/1550463698422784.htm...
分类:
其他好文 时间:
2015-03-12 11:35:03
阅读次数:
125
#include
using namespace std;
#define N 105
#define INF 0x7ffffff
struct Edge
{
int u;
int v;
int w;
}edge[N*N/2];
int n, m, span, p[N], rank[N];
int cmp(Edge a, Edge b)
{
return a...
分类:
其他好文 时间:
2015-03-12 11:33:09
阅读次数:
135
王坚:我为什么反对有些企业的“去IOE”运动?...
分类:
其他好文 时间:
2015-03-12 11:32:16
阅读次数:
137
Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as the Hamming weight).
For example, the 32-bit integer ’11' has binary representation 00000000...
分类:
其他好文 时间:
2015-03-12 11:34:16
阅读次数:
112
文章开始之前让我们设想下面的几个情形:我们在办公室内就能访问到生产车间的网络摄像机,而无需到监控室查看生产情况;在下班之前,或在回去的路上,就可以先打开家里的空调器和厨房设备,等进入家门,立刻就是一个温度宜人的环境――厨房里的饭也做好了;我们想在电视机上回味一下几天前在景区拍的照片,把相机或者DV联网就可以了,无需再去拷贝。工作生活都如此方便,将是一个很惬意的事情。
实现这些场景的网络设备都要基于一种叫端口映射的网络技术。端口映射就是路由器将外网某一个端口与内网中某个设备的IP地址和端口号建立起一一对应关...
分类:
其他好文 时间:
2015-03-12 11:32:06
阅读次数:
300