链接 :
??
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3420
普通的BFS 两个图的状态表示成一个状态。记录答案直接用string保存操作。
#include
#include
#include
#include
#include
#include
#include
#include...
分类:
其他好文 时间:
2015-05-27 22:54:16
阅读次数:
199
如题,本文列举了一些在web前端开发中常用的转换及处理方式。使用JSON而不是字符串,主要是为了方便处理。JSON:JavaScript 对象表示法(JavaScriptObjectNotation),其实JSON就是一个JavaScript的对象(Object)而已。如有不清楚JSON,可以去w3...
分类:
Web程序 时间:
2015-05-27 22:45:53
阅读次数:
191
如果一个表有几十个字段,写Dto绝对是一个痛不欲生的事情,那么怎么办?用反射吧:public static string DynamicToClass(object entity, string className) { StringBuilder reval =...
分类:
其他好文 时间:
2015-05-27 22:40:44
阅读次数:
314
【1】什么是责任链模式?责任链模式:【2】责任链模式的代码示例:代码示例:#include#includeusing namespace std;class Request{public: string requestType; string requestContent; int...
分类:
其他好文 时间:
2015-05-27 22:36:40
阅读次数:
124
1、std::string的.length()方法 计算代‘/’的字符串的长度会少计算‘/’的个数。比如:[warning]*****[/warning]
分类:
编程语言 时间:
2015-05-27 22:22:10
阅读次数:
128
在java中,我们常常需要对字符串进行分割,使用split方法把字符串按照指定的分割符进行分割,然后返回字符串数组,下面是string.split的用法实例及注意事项:publicclassStringSplit{publicstaticvoidmain(String[]args){StringsourceStr="1,2,3,4,5";String[]sourceStrArray=sou..
分类:
编程语言 时间:
2015-05-27 21:17:02
阅读次数:
168
结构体:由多种简单类型,组合成一种复杂的类型。使用这种复杂的类型来解决生活中的实际例子。一、结构体定义:struct 结构体的名子{ public 类型名 变量名; .....} struct Student { public string NO; publi...
分类:
其他好文 时间:
2015-05-27 21:05:58
阅读次数:
128
StringBuffer特点:是字符串缓冲区.是一个容器,其长度可变,可以操作添加多个数据类型.最后通过toString方法变成字符串.被final锁修饰,因此不能被继承.存储:方法1:append() 添加数据到缓冲区.返回类型:StringBuffer方法: append(指定数据) 将指定数据...
分类:
编程语言 时间:
2015-05-27 21:05:57
阅读次数:
153
import java.util.Stack;public class StackTest { public static void main(String[] args) { Stack stack = new Stack(); System.out.println("now the stac.....
分类:
其他好文 时间:
2015-05-27 20:57:03
阅读次数:
156
class Solution {public: bool isIsomorphic(string s, string t) { mapxmap; if(s.size()!=t.size()){ return false; } ...
分类:
其他好文 时间:
2015-05-27 20:51:09
阅读次数:
91