码迷,mamicode.com
首页 >  
搜索关键字:string strarray new    ( 158342个结果
MultiByteToWideChar和WideCharToMultiByte
CStringUTF8ToGB2312(CStringstr){intlen;//UTF8转换成Unicodelen=MultiByteToWideChar(CP_UTF8,0,str,-1,NULL,0);wchar_t*pUnicode=newwchar_t[len+1];memset(pUni...
分类:其他好文   时间:2014-07-22 23:17:35    阅读次数:435
JAVA字符串格式化-String.format()的使用(转)
常规类型的格式化String类的format()方法用于创建格式化的字符串以及连接多个字符串对象。熟悉C语言的同学应该记得C语言的sprintf()方法,两者有类似之处。format()方法有两种重载形式。format(String format, Object... args) 新字符串使用本地语...
分类:编程语言   时间:2014-07-22 23:17:33    阅读次数:497
VC/MFC分割字符串(SplitString)返回CStringArray
引自:http://bbs.csdn.net/topics/60321228原版:CStringArray*SplitString(CStringstring,charpattern){CStringArray*strArray=newCStringArray();CStringstrTemp;ch...
分类:其他好文   时间:2014-07-22 23:17:33    阅读次数:1134
six solutions to a single symmetrical problem
Problem description:given a string, find the longest palindrome string in itSolution:1.brute force O(n^3)just enumerate start and end of the substring...
分类:其他好文   时间:2014-04-29 17:22:46    阅读次数:308
JSON
CSDN换回字符串 var newJSONtext=people.toJSONString(); //获得字符串 可以将它用作 Ajax 应用程序中的请求字符串。J?S?O?N?.?s?t?r?i?n?g?i?f?y? ?
分类:Web程序   时间:2014-04-29 17:18:46    阅读次数:339
【转载】实现UTF8与GB2312编码格式相互转换(VC)已经验证!
UTF-8编码:[1,1,1,0,A5,A6,A7,A8],[1,0,B3,B4,B5,B6,B7,B8],[1,0,C3,C4,C5,C6,C7,C8];对应的UNICODE编码:[A5,A6,A7,A8,B3,B4,B5,B6],[B7,B8,C3,C4,C5,C6,C7,C8]CString ...
分类:其他好文   时间:2014-04-29 17:15:47    阅读次数:305
gui组件
//guI; graphics user interfaceimport javax.swing.*;import java.awt.*; public class Main { public static void main(String[] args) { JFra...
分类:其他好文   时间:2014-04-29 16:48:47    阅读次数:313
poj 1274 The Perfect Stall
DescriptionFarmer John completed his new barn just last week, complete with all the latest milking technology. Unfortunately, due to engineering probl...
分类:其他好文   时间:2014-04-29 16:46:46    阅读次数:371
sqlite
http://www.cocoachina.com/newbie/tutorial/2012/0607/4334.html
分类:数据库   时间:2014-04-29 16:46:46    阅读次数:353
StringUtils 类的使用
StringUtils 方法的操作对象是 java.lang.String 类型的对象,是 JDK 提供的 String 类型操作方法的补充,并且是 null 安全的(即如果输入参数 String 为 null 则不会抛出 NullPointerException ,而是做了相应处理,例如,如果输入...
分类:其他好文   时间:2014-04-29 16:45:47    阅读次数:387
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!