fastJSON using fastJSON;string jt=fastJSON.JSON.ToJSON(tt);Tick t2 = fastJSON.JSON.ToObject(jt); Tick是一个类,或者struct。来自为知笔记(Wiz)
分类:
Web程序 时间:
2015-07-31 06:38:22
阅读次数:
135
using System;using System.Collections.Generic;using System.Web;using System.IO;using System.Text;using System.Web.Security;using System.Xml;public cla...
分类:
微信 时间:
2015-07-31 06:38:15
阅读次数:
558
测试程序
那么,我们写个程序来测试一下吧。下面就是 BitConverterTester.cs:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
using System;
n...
分类:
编程语言 时间:
2015-07-31 06:38:12
阅读次数:
282
STSdb4 1.打开文件并建一个简单的表格:using (IStorageEngine engine = STSdb.FromFile("test.stsdb4")){var table = engine.OpenXTable("table");for (int i = 0; i ("table"...
分类:
数据库 时间:
2015-07-31 06:35:53
阅读次数:
653
在导入mysql数据的时候,如果遇到the right syntax to use near USING BTREE语法错误,不用惊慌 因为mysql新版本的USING BTREE语法与老版本有些不同(mysql5.14前后) 我们只需要将文件中的形如: KEY `typeid` (...
分类:
其他好文 时间:
2015-07-31 01:33:54
阅读次数:
191
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include using namespace std;
#def...
分类:
编程语言 时间:
2015-07-31 01:27:56
阅读次数:
121
这道题花了我一晚上去了看了一种解法,结果最后悲剧了,只在poj上过了,在hdu上TLE,原因是因为hdu上是多组数
据,而poj上是一组数据。。。悲剧啊,学的方法有点低效。。。
不过那个打印路径方法倒是可以借鉴一下,从终点往起点递归,打印路径。。。
贴代码:
#include
#include
#include
#include
using namespace std;
#define N...
分类:
其他好文 时间:
2015-07-31 01:26:07
阅读次数:
90
/*
算法题:给你一个自然数N,求[6, N]之内的所有素数中,
两两之和为偶数的那些偶数。
*/
#include
using namespace std;
void Grial(int n)
{
int *b = new int[n];
int k = 0;
b[k++] = 2;
b[k++] = 3;
b[k++] = 5;...
分类:
编程语言 时间:
2015-07-31 01:24:34
阅读次数:
150
//通过键盘输入一串任意字符串。
//请编写一个字符串压缩程序,将字符串中连续出
//席的重复字母进行压缩,并输出压缩后的字符串。
/*
如:输入AABBCC,输出2A2B2C;输入,,,..,输出3,2.。
*/#include
#include
#include
using namespace std;
void Grial(ch...
分类:
其他好文 时间:
2015-07-31 01:22:38
阅读次数:
111
这个题其实有O(n)的算法,不过还是用线段树做了一遍,还写了个自认为不错的pushalldown函数,哈哈。 1 #include 2 #include 3 #include 4 using namespace std; 5 6 const int N = 100001; 7 int ans...
分类:
其他好文 时间:
2015-07-31 01:16:36
阅读次数:
120