1. xml文件的解析 1 void CDataMgr::readStringData() 2 { 3 std::string xml_name = "config/string.xml"; 4 TiXmlDocument * xmlDoc = new TiXmlDocument( xml_name...
分类:
其他好文 时间:
2015-03-20 12:44:12
阅读次数:
130
Given two binary strings, return their sum (also a binary string).For example,a = "11"b = "1"Return "100";思路: 对齐, 计算当前位和进位;如果位较长,让我想到了先行进位加法器,不过这里的计算不...
分类:
其他好文 时间:
2015-03-20 12:35:07
阅读次数:
129
js 判断字符串是否包含某字符串,String对象中查找子字符,indexOf ? var Cts = "bblText"; ?? if(Cts.indexOf("Text") > 0 ) { ????alert(‘Cts中包含Text字符串‘); } indexOf用法: indexOf 方法返回一个整数...
分类:
Web程序 时间:
2015-03-20 11:12:16
阅读次数:
104
分享Delphi处理EXCEL源码,源码如下:(****************************************************************************************)varFExcelApp:Variant;//ExcelAppFCellRange:Variant;//ExcelRangeFPicture:Variant;//picturesFCellNo:string;//CellStringsg_strHeaderSQL:..
分享Delphi处理EXCEL源码,源码如下:
(****************************************************************************************)
var
FExcelApp:Variant;//ExcelAppFCellRange:Variant;//ExcelRangeFPicture:Variant;//picturesFCellNo:string;//CellStringsg_strHeaderS..
分享Delphi处理EXCEL源码,源码如下:
(****************************************************************************************)
var
FExcelApp:Variant;//ExcelAppFCellRange:Variant;//ExcelRangeFPicture:Variant;//picturesFCellNo:string;//CellStringsg_strHeaderS..
private void setOneMenu()
{
string sql = "select id,name,gids from Config where name'基础设置' order by [Order] desc";
DataTable dt = Sunway.DBUtility.DbHelperSQL.ExecuteDataSet(Comman...
分类:
Web程序 时间:
2015-03-20 11:02:38
阅读次数:
160
测试代码:
public class Test {
public static void main(String[] args) {
System.out.println(Thread.activeCount());
}
}
idea运行,输出为“2”
eclispe运行,输出为“1”
jdk编译运行,输出为“1”...
分类:
编程语言 时间:
2015-03-20 10:55:37
阅读次数:
149
这个判断方法真的没想到。。。
对于在S中匹配M,如果M上一次的匹配位置pre与这一次的匹配位置now满足now-pre >= M.length,则加1。
这个判断太跳了233
。
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#...
分类:
其他好文 时间:
2015-03-20 10:53:51
阅读次数:
146
由其他人提供的插件,bake meshstatic void writeString(BinaryWriter bw, string str, int cap) { var ba = new byte[cap]; var bs = System.Te...
分类:
编程语言 时间:
2015-03-20 10:43:46
阅读次数:
335