JSON.NET(http://json.codeplex.com/)使用来将.NET中的对象转换为JSON字符串(序列化?),或者将JSON字符串转换为.NET中已有类型的对象(反序列化?)首先为了例子随便定义一个类型:public class Product{ public string ...
分类:
Web程序 时间:
2014-06-18 09:10:55
阅读次数:
184
1>get是从服务器获取数据,post是向服务器传送数据。 2>get把参数队列加入到URL中,值和表单的各个字段一一对应,在URL中可以看到。post是将表单中的各个字段和内容放置在请求头中的,用户看不到这些内容。 ps:get请求的数据,以?分割URL和传输参数,参数之间以&相连。 3>对于ge...
分类:
其他好文 时间:
2014-06-18 09:00:32
阅读次数:
162
///一般处理程序 string action = context.Request["action"]; var adapter= new T_UserTableAdapter(); ...
分类:
其他好文 时间:
2014-06-18 08:54:47
阅读次数:
183
主要是思维,dis[s][t]数组的作用#include #include #include int map[101][101];int v[101][101],dis[101][101];int n,m,x;int jx[]={-1,1,0,0};int jy[]={0,0,-1,1};void ...
分类:
其他好文 时间:
2014-06-18 08:25:38
阅读次数:
205
SqlServer、Oracle、MySQL的连接,除了地址和驱动包不同,其他都一样的。 1 public String urlString="jdbc:sqlserver://localhost:1433;databaseName=crebas;"; 2 //"jdbc:m...
分类:
数据库 时间:
2014-06-18 08:18:02
阅读次数:
212
题目思想比較简单,可是题目要求输出路径比較麻烦,学习了Ice_Crazy博主的方法,感觉不错。#include #include"stdio.h"#include"string.h"#include"queue"using namespace std;const int maxn = 100 + 5...
分类:
其他好文 时间:
2014-06-18 00:23:10
阅读次数:
233
/*以下代码是对emp表进行显示宽度设置 */col empno for 9999;col ename for a10;col job for a10;col mgr for 9999;col hiredate for a12;col sal for 9999;col comm for 9999;c...
分类:
数据库 时间:
2014-06-18 00:22:31
阅读次数:
371
NSString *str = @"我是一asdf我是一我是一我是一我是一我是一我是一我是一我是一我是一我是一我是一asdf我是一asdf我是一asdf我是一asdf我是一asdf我是一asdf"; CGSize labelSize = [str sizeWithFont:[UIFont boldS...
分类:
其他好文 时间:
2014-06-18 00:14:11
阅读次数:
189
Write a function to find the longest common prefix string amongst an array of strings.题解: 寻找一组字符串的最长公共前缀。最简单的方法,用一个字符串记录当前最长的公共前缀,然后依次比较。时间复杂度: O(N). ...
分类:
其他好文 时间:
2014-06-18 00:03:08
阅读次数:
274
String [] from ={Books.Id,Books.Name,Books.Author,Books.Category}; int [] to={R.id.ID,R.id.nameID,R.id.authorID,R.id.categoryID}; ...
分类:
其他好文 时间:
2014-06-17 23:56:14
阅读次数:
336