创建表:create table tablename( cloume1name 类型 (NOT
NULL) (DEFAULT ...),//括号代表可选 ..., ...//最后没有逗号);类型:char(i), varchar(i), int,
date, datetime, blob,de...
分类:
数据库 时间:
2014-05-21 20:36:14
阅读次数:
340
linux的touch命令不常用,一般在使用make的时候可能会用到,用来修改文件时间戳,或者新建一个不存在的文件。1.命令格式:touch[选项]...文件...2.命令参数:-a或--time=atime或--time=access或--time=use 只更改存取时间。-c或--no-crea...
分类:
其他好文 时间:
2014-05-21 19:47:57
阅读次数:
297
/// /// 时间戳转为C#格式时间 /// /// Unix时间戳格式 /// C#格式时间
public static DateTime GetTime(string timeStamp) { ...
分类:
其他好文 时间:
2014-05-21 18:01:24
阅读次数:
263
Say you have an array for which theithelement
is the price of a given stock on dayi.Design an algorithm to find the maximum
profit. You may complete a...
分类:
其他好文 时间:
2014-05-21 17:27:55
阅读次数:
252
【题目】
Given an unsorted integer array, find the first missing positive integer.
For example,
Given [1,2,0] return 3,
and [3,4,-1,1] return 2.
Your algorithm should run in O(n) time and uses constant space.
【题意】
给定一个数组,找出第一个缺失的正数。时间复杂度O(n)
...
分类:
其他好文 时间:
2014-05-21 17:13:07
阅读次数:
219
构造函数:构造函数是一种特殊的成员函数
构造函数的特点:
1 构造函数的函数名和类名相同
2 构造函数没有返回值
3 构造函数用于初始化对象
通过一个实例说明构造函数的作用
#include
using namespace std;
class Time//时间类
{
public:
void set_time();//设置时间
void show_time();//...
分类:
其他好文 时间:
2014-05-21 14:38:17
阅读次数:
263
Alignment
Time Limit: 1000MS
Memory Limit: 30000K
Total Submissions: 12571
Accepted: 4021
Description
In the army, a platoon is composed by n soldiers. During the m...
分类:
其他好文 时间:
2014-05-21 11:23:16
阅读次数:
227
Balance
Time Limit: 1000MS
Memory Limit: 30000K
Total Submissions: 10065
Accepted: 6231
Description
Gigel has a strange "balance" and he wants to poise it. Actually...
分类:
其他好文 时间:
2014-05-21 07:23:20
阅读次数:
312
对象
计数器
描述
度量值
System
%Total
Processor
Time
系统上所有处理器都忙于执行非空闲线程的时间的平均百分比,体现整体的处理器利用率。例如在多处理器系统上,当所有处理器始终处于忙碌状态,则此值为100%;当所有处理器中的1/4处于100%忙碌状态,则此值为25%
该值若持续高于80%~...
Palindrome
Time Limit: 3000MS
Memory Limit: 65536K
Total Submissions: 50914
Accepted: 17537
Description
A palindrome is a symmetrical string, that is, a string read...
分类:
其他好文 时间:
2014-05-21 06:50:05
阅读次数:
281