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
[源码编译]
前期准备:
确认电脑上安装好g++等开发环境,否则执行
sudo apt-get install build-essential
2. 确认电脑上已经安装好svn以便下载最新的源代码,否则执行
sudo apt-get install subversion
3. 确保proj4的安装
$ curl -O...
分类:
系统相关 时间:
2014-07-22 23:02:53
阅读次数:
2542
首先把工具都下载好:1. Qt for
Android:http://qt-project.org/downloads2. Android
NDKhttp://developer.android.com/tools/sdk/ndk/index.html64位可以下载第二个3.Apache Ant
1...
分类:
移动开发 时间:
2014-05-02 16:45:43
阅读次数:
573
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
例如我们要获取我们项目类路径下的image-manager.properties
java代码如下
import org.apache.tools.ant.taskdefs.LoadProperties;
protected String readConfig() throws FileNotFoundException, IOException {
In...
分类:
其他好文 时间:
2014-05-01 21:53:04
阅读次数:
356
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
问题描述:
在Eclipse中运行ant批量打包工具出错,日志信息如下:
D:\Android\android-sdk-windows\tools\ant\build.xml:601: The following error occurred
while executing this line:
D:\Android\android-sdk-windows\tools\ant\bui...
分类:
移动开发 时间:
2014-04-30 22:48:39
阅读次数:
359
类似java的多行注释!
安装过程:
1.前往GitHub下载工程文件:VVDocumenter-Xcode
2.用Xcode打开工程,Command + B
Build成功后,可以在~/Library/Application Support/Developer/Shared/Xcode/Plug-ins目录下看到生成的xcplugin文件:
...
分类:
其他好文 时间:
2014-04-30 22:46:38
阅读次数:
304
前文描述的是在SDK下用Ant开发, 本文在此基础上尝试用Maven开发。这里需要用到maven-android-plugin。本文主要参考官方文档: https://code.google.com/p/maven-android-plugin/wiki/GettingStarted首先从这里下载例子工程:https://code.google.com/p/maven-android-plugin...
分类:
移动开发 时间:
2014-04-30 22:31:40
阅读次数:
412
问题描述:
在sublime text里写最简单的python语句hello world:
print ('hello world')
回车build后出错如下图:
解决办法:
这个问题的原因说起来很幼稚,就是因为没有保存文件。所...
分类:
其他好文 时间:
2014-04-30 22:16:38
阅读次数:
344