码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
xml文件的解析
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
Add Binary
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 判断字符串是否包含某字符串
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源码
分享Delphi处理EXCEL源码,源码如下:(****************************************************************************************)varFExcelApp:Variant;//ExcelAppFCellRange:Variant;//ExcelRangeFPicture:Variant;//picturesFCellNo:string;//CellStringsg_strHeaderSQL:..
分类:Windows程序   时间:2015-03-20 11:07:47    阅读次数:150
分享Delphi处理EXCEL源码
分享Delphi处理EXCEL源码,源码如下: (****************************************************************************************) var FExcelApp:Variant;//ExcelAppFCellRange:Variant;//ExcelRangeFPicture:Variant;//picturesFCellNo:string;//CellStringsg_strHeaderS..
分类:Windows程序   时间:2015-03-20 11:07:04    阅读次数:278
分享Delphi处理EXCEL源码
分享Delphi处理EXCEL源码,源码如下: (****************************************************************************************) var FExcelApp:Variant;//ExcelAppFCellRange:Variant;//ExcelRangeFPicture:Variant;//picturesFCellNo:string;//CellStringsg_strHeaderS..
分类:Windows程序   时间:2015-03-20 11:06:47    阅读次数:246
在toolbar里动态创建多个button(ext.net)
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
idea、jdk、eclispe中空main方法的线程数量不一样,why?
测试代码: 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
ZOJ 3228 Searching the String AC自动机的不重复匹配
这个判断方法真的没想到。。。 对于在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
Unity3D BakeMesh 因二进制文件读写字符串的方式导致莫名bug
由其他人提供的插件,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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!