ATL7.0介绍了一些新的转换类和宏,为现有的宏提供了重要的改进。新的字符串转换类和名称宏的形式是:C源类型2[C]目标类型[EX]其中:?源类型和目标类型描述如下表.?[C]是目标类型必须是只读的.?[EX]是缓冲器的初始大小必须被指定为一个模板参数。源类型/目标类型描述AANSI字符串WUnic...
分类:
编程语言 时间:
2015-03-13 20:29:58
阅读次数:
267
用N个串中找到最短的公共串(不要求连续,只要相对位置一样即可)
迭代加深搜索即可
剪枝:当前的深度+最少还有加深的深度是否大于限制的长度,若是,则退回。
#include "stdio.h"
#include "string.h"
const char ch[10]="ATCG";
int deep,n;
char s[10][10];
int pos[10];
int Max(...
分类:
其他好文 时间:
2015-03-13 18:52:07
阅读次数:
190
uses msxml, RegularExpressions;
function GetPublicIP:string;
var
req: IXMLHTTPRequest;
begin
req := CoXMLHTTP.Create;
req.open('get', 'http://city.ip138.com/ip2city.asp', False, EmptyStr, Empty...
分类:
其他好文 时间:
2015-03-13 18:50:48
阅读次数:
119
uses IdIPWatch;
function GetNativeIP: String;
var
IdIPWatch: TIdIPWatch;
begin
IdIPWatch := TIdIPWatch.Create(nil);
try
Result := IdIPWatch.LocalIP;
finally
IdIPWatch.Free;
end;
end...
分类:
其他好文 时间:
2015-03-13 18:48:59
阅读次数:
133
前言:Java的类库日益庞大,所包含的类和接口也不计其数。但其中有一些非常重要的类和接口,是Java类库中的核心部分。常见的有String、Object、Class、Collection、ClassLoader、System、Runtime...,掌握类是灵活Java这门语言的基础。而这些类一般都很好理解和运用,需要做深入的研究和实践才能掌握。...
分类:
编程语言 时间:
2015-03-13 18:46:55
阅读次数:
183
public static String DEPLOY_PATH = null;
static
{
String CurrentClassFilePath = Constant.class.getResource("").getPath();
int lastpath = CurrentClassFilePath.lastIndexOf("WEB-INF/");
DEPLOY_PA...
分类:
编程语言 时间:
2015-03-13 18:45:02
阅读次数:
146
声明类型为泛型。说明传递的参数为泛型,而不仅仅是一种类型。 public void aa(T a) { Console.WriteLine(a); }调用时可写:this.aa(5);this.aa(string)("aaaa");C#变量类型后面加...
分类:
其他好文 时间:
2015-03-13 18:39:01
阅读次数:
174
1. 概述 本章解释在 MS.Net Framework 中处理单独的字符和字符串的机制。包括 System.Char结构、System.String类、System.Text.StringBuilder类以及System.Security.SecureString类。2. 名词解释3. 主要内容....
分类:
其他好文 时间:
2015-03-13 18:26:15
阅读次数:
111
---------------------- ASP.Net+Unity开发、.Net培训、期待与您交流! ----------------------class CopyWenJianJia{ public static void main(String[] args)throws ...
分类:
其他好文 时间:
2015-03-13 18:25:51
阅读次数:
96
今天遇到了一个奇怪的问题:jsp代码如下:数据对比${name}在controller里面,有赋值: @RequestMapping(value = "/index.do") public String index(ModelMap modelMap) { modelMap...
分类:
编程语言 时间:
2015-03-13 18:10:41
阅读次数:
161