前提是String的格式是map或json类型的String 转JsonJSONObject jasonObject = JSONObject.fromObject(str);String 转MapJSONObject jasonObject = JSONObject.fromObject(str)...
分类:
Web程序 时间:
2014-08-12 16:19:04
阅读次数:
217
此题开始 用记忆化搜索搞,我果然白痴,字符串30w 的长度 ,爆栈是肯定的。dp转移的方程: str[i->j] 如果出现 dp[i] += dp[j+1]然后用字典树查询 str[i->j]是否出现过。#include #include #include #include #include #in...
分类:
其他好文 时间:
2014-08-12 16:15:54
阅读次数:
198
在Visual Studio中,生成应用程序的时候有2种模式:Debug和Release。两者之间如何取舍呢? 假设有这么简单的一段代码,在主程序中调用方法M1,M1方法调用M2方法,M2方法调用M3方法,M3方法中抛出异常。 class Program { static void Main(str...
分类:
其他好文 时间:
2014-08-12 13:31:04
阅读次数:
267
static final SimpleDateFormat DATETIME_SEC_STR = new SimpleDateFormat("yyyyMMddHHmmss");1.Date转LongLong currStartTime = Long.valueOf(DATETIME_SEC_STR....
分类:
其他好文 时间:
2014-08-12 13:23:44
阅读次数:
184
__init__ 构造函数__del__ 析构函数__add____sub____or____repr__,__str____call____getattr____setattr____delattr____getattribute____getitem____setitem____delitem_...
分类:
编程语言 时间:
2014-08-12 13:10:34
阅读次数:
247
自己整理的一个类,需要的添加到工程中直接用就可以了。 1 /* ******* StrDirFile.h ********** 2 ********* 文件操作函数声明 ********** */ 3 4 /* author: autumoon */ 5 6 #ifndef _STR_DIR_F.....
分类:
其他好文 时间:
2014-08-12 12:51:24
阅读次数:
232
#include
#include
int main(int argc, char *argv[])
{
char str[80];
int i = 0;
for(i = 0; i
{
sprintf(str, "cp %s %d%s", argv[0], i, ".out"); //在WIN下用copy代替cp
system(str);
}
//printf...
分类:
编程语言 时间:
2014-08-12 10:25:13
阅读次数:
196
$str = "中华人民共和国";$ar = array( "a" => "a0", "b" => "b0", "c" => "c0", "d" => "d0", "e" => $str, );echo preg_replace("#\\\u([0-9a-f]{4})#ie", "iconv('UC...
分类:
Web程序 时间:
2014-08-12 10:08:23
阅读次数:
251
http://www.cnblogs.com/liszt/archive/2011/08/16/2140007.htmlfunction removeHTMLTag(str) { str = str.replace(/]*>/g,''); //去除HTML tag ...
分类:
Web程序 时间:
2014-08-12 10:07:53
阅读次数:
274
/*
* 算法导论 第八章 线性时间排序
* 计数排序、基数排序和桶排序
*/
#include
#include
#include
#include
using namespace std;
void printArray(int arr[], int len, char *str)
{
cout << str << endl;
for (int i=0; i<len; i...
分类:
其他好文 时间:
2014-08-12 00:46:13
阅读次数:
210