char s[maxn];
int sa[maxn];
int t[maxn], t2[maxn], c[maxn];
int rank[maxn], height[maxn];
int n;
void build_sa(int m)
{
int i, *x = t, *y = t2;
for(i = 0; i < m; i++)
c[i] = 0;
for(i = 0; i < n; ...
分类:
其他好文 时间:
2014-07-22 23:04:34
阅读次数:
293
ubuntu安装opencv(1)安装编译opencv的环境sudo apt-get -y
install build-essential cmake pkg-config(2)安装Image I/O库sudo apt-get -y install
libjpeg62-dev sudo apt-ge...
分类:
其他好文 时间:
2014-05-01 22:42:45
阅读次数:
451
Hibernate 加载数据 有get,跟Load 1、懒加载:
使用session.load(type,id)获取对象,并不读取数据库,只有在使用返回对象值才正真去查询数据库。@Test public void
test1() { Session session = null;...
分类:
系统相关 时间:
2014-05-01 22:40:35
阅读次数:
614
1计算.(1) $\dps{ \lim_{x\to
0}\frac{\int_0^{x^2}\sin^\frac{3}{2}t\rd t}{\int_0^xt\sex{t-\sin t}\rd t} }$.解答:
$$\bex \mbox{原式}&=&\lim_{x\to 0}\frac{2x\si...
分类:
其他好文 时间:
2014-05-01 22:39:54
阅读次数:
709
一、创建型模式... 1工厂方法(FactoryMethod).
1抽象工厂(AbstractFactory). 2建造者(Builder). 2单例模式(Singleton). 3原型模式(Prototype).
3二、结构型模式... 3适配器模式(Adapter). 3桥接模式(Bridge)...
分类:
其他好文 时间:
2014-05-01 19:36:06
阅读次数:
388
1. sprintf 原型:int sprintf( char *buffer, const char
*format, [ argument] … ); 功能:将格式化后的字符串写在buffer中,常用于把数字打印在字符串中;连接字符串。 参数:buffer -
待写入缓冲区; format - ...
分类:
其他好文 时间:
2014-05-01 19:32:52
阅读次数:
323
Wininet是Win32关于网络的API,MFC也有对于Wininet的封装,可以利用这组API实现FTP和HTTP通信。Wininet
API的头文件:Wininet。下面是Wininet建立FTP客户端的一般步骤。第一步:初始话Wininet,实际上就是设置一些关于是否使用代理,访问方式等的参...
Keyboard inputPython provides a build-in
function called raw_input (in version 2.x) that gets input from the keyboard. In
Python 3.x we use input(). W...
分类:
其他好文 时间:
2014-05-01 19:23:26
阅读次数:
392
{{include tmpl="#header"
/}}中的include前不要加#,否则就是坑模板嵌套demo网址:http://borismoore.github.io/jsrender/demos/demos.html
分类:
Web程序 时间:
2014-05-01 19:01:40
阅读次数:
449
在JavaScript可以使用try...catch来进行异常处理。例如: try {
foo.bar(); } catch (e) { alert(e.name + " : " + e.message); }
目前我们可能得到的系统异常主要包含以下6种: EvalError: raised whe...
分类:
编程语言 时间:
2014-05-01 19:01:02
阅读次数:
325