分离出文件名 路径 后缀...
分类:
其他好文 时间:
2014-05-23 02:33:22
阅读次数:
211
version 1
从右到左排序,每次都尽可能的选打击范围内最右边的点安装雷达(由于浮点,所以不要一棒子打死的判断是大是小,给出一个精度范围,一开始范围给打了就WA),拿这个雷达去覆盖其他点,最后雷达总数一定是最少的
/*
poj 1328
264K 16MS
*/
#include
#include
#include
#include
#define MAXN 10...
分类:
其他好文 时间:
2014-05-23 02:23:38
阅读次数:
239
Sum square difference
Problem 6
The sum of the squares of the first ten natural numbers is,
12 + 22 + ... + 102 = 385
The square of the sum of the first ten natural numbers is,
(1 + 2 + ....
分类:
其他好文 时间:
2014-05-23 02:22:57
阅读次数:
193
Rewirte主要的功能就是实现URL的跳转和隐藏真实地址,基于Perl语言的正则表达式规范。平时帮助我们实现拟静态,拟目录,域名跳转,防止盗链等。本文将针对mod_rewrite和URL匹配的技术细节,以及RewriteCond与RewriteRule 指令格式进行探讨。
Rewirte模块内部处理
Rewirte模块的内部处理极为复杂,但是为了使一般用户避免犯低级错误,也让管理员能充分利用...
分类:
其他好文 时间:
2014-05-23 02:33:58
阅读次数:
221
The translation from the Berland language into the Birland language is not an easy task. Those languages are very similar: a berlandish word differs from a birlandish word with the same meaning a litt...
分类:
其他好文 时间:
2014-05-23 02:27:26
阅读次数:
587
判断二维字符串是否满足下面条件:
on both diagonals of the square paper all letters are the same;
all other squares of the paper (they are not on the diagonals) contain the same letter that is different from the...
分类:
其他好文 时间:
2014-05-23 02:21:01
阅读次数:
294
栈与队列都是比较高级的数据结构,虽然不难,但有时有些问题也比较灵活,在《编程之美》与《剑指offer》上就有一些这样的题目。用队列模拟栈、用站栈模拟队列,以及现实队列与栈的最大值与最小值求解,这些都是基础的,只要理解栈的后进先出与队列的先进先出特点即可解决。
1、栈模拟队列
用两个栈,元素从一个栈stackA进入,从另一个栈stackB出来。进队列时直接添加到stackA,出队列时...
分类:
其他好文 时间:
2014-05-23 02:28:08
阅读次数:
213
策略模式(Strategy Pattern) 详解
本文地址: http://blog.csdn.net/caroline_wendy/article/details/26577879
本文版权所有, 禁止转载, 如有需要, 请站内联系.
策略模式: 定义了算法族, 分别封装起来, 让它们之间可以相互替换, 此模式让算法的变化独立于使用算法的客户.
对于父类的子类族需要经常扩展新的功能, 为了使用父类比较灵...
分类:
其他好文 时间:
2014-05-23 02:35:13
阅读次数:
341
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include
#include
using namespace std;
int main()
{
...
分类:
其他好文 时间:
2014-05-22 16:57:45
阅读次数:
202
Oracle的sequence通常可以用来作自增列,例如主键,因为他可以自动累加并且唯一。创建sequence时有几个参数,MAXVALUE、MINVALUE、CYCLE、NOCYCLE、NOMAXVALUE等,这几个参数我们日常使用的时候可能不会太在意,但有些细节问题碰到的时候就需要明确下。
1、未定义NOCYCLE,默认是NOCYCLE还是CYCLE?
CREATE SEQUENC...
分类:
其他好文 时间:
2014-05-23 02:29:29
阅读次数:
267
std::string转NSString
std::string _string("hello");NSString *str= [NSString stringWithCString:_string.c_str() encoding:[NSString defaultCStringEncoding]];
NSString转std::string
NSString * ...
分类:
其他好文 时间:
2014-05-23 02:24:50
阅读次数:
201
题目:
Problem Description
In the year 8888, the Earth is ruled by the PPF Empire . As the population growing , PPF needs to find more land for the newborns . Finally , PPF decides to att...
分类:
其他好文 时间:
2014-05-23 02:32:42
阅读次数:
298
??
开发之南十一:JEECG微云快速开发平台--基础用户权限
11.1. 权限设计
基本概念
权限管理模块涉及到的实体有:用户、角色和系统资源(包括系统菜单、页面按钮等)。用户可以拥有多个角色,角色可以被分配给多个用户。而权限的意思就是对某个资源的某个操作.一般通用的权限管理模块规定:所谓资源即应用系统中提供的要进行鉴权才能访问的资源(比如各类数据,系统菜...
分类:
其他好文 时间:
2014-05-23 02:26:06
阅读次数:
358
1. 不使用new,执行完函数,并且赋值给变量```function Foo(){}
//创建一个函数var b = Foo(x, y, z); //执行这个函数并且把值赋值给b```2. 使用new -
创建一个空对象,并且把this指向该对象 - 把这个空对象的__proto__属性指向函数.....
分类:
其他好文 时间:
2014-05-22 13:59:32
阅读次数:
161
元计算是我设计的太极语言中一个重要的特征。这里元计算指的是在编译时间运行从源语言代码编译后获得的目标语言代码。受到C语言中的预处理指令前缀#(#define,
#if-#else等)的启发,我选用#开头的一组符号作为各种元运算的算符。比如##expression 是编译时间运行expression,...
分类:
其他好文 时间:
2014-05-22 14:00:09
阅读次数:
237
Camunda BPM
是一个灵活的工作流和过程自动化框架,它的核心是一个在Java虚拟机内部运行的原生BPMN
2.0流程引擎,因此它可以嵌入到任何Java应用程序或运行时容器中。Camunda BPM与Java EE 6集成,并可以与Spring
Framework完美匹配。Camunda BP...
分类:
其他好文 时间:
2014-05-22 14:00:53
阅读次数:
582
#include#includevoid main(){ char a[3]; char*str =
"adgc"; strcpy(a,str); printf("%s ",a);}程序运行的结果为什么是 adgc 呢? a的空间只有3个字符呢
,为什么可以存放str呢?望求解。
分类:
其他好文 时间:
2014-05-22 14:02:13
阅读次数:
265