码迷,mamicode.com
首页 >  
搜索关键字:string null    ( 125062个结果
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
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
关于C#问号(?)的三个用处
最近在写代码时候,经常遇到的问题“关于C#问号(?)的三个用处”,虽然不是什么很NB的事情,但是我觉得积累下来还是有用的,所以就总结一下:1. 可空类型修饰符(?):引用类型可以使用空引用表示一个不存在的值,而值类型通常不能表示为空。例如:stringstr=null; 是正确的,int i=nul...
分类:其他好文   时间:2014-04-29 17:21:46    阅读次数:326
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
StringUtils 类的使用
StringUtils 方法的操作对象是 java.lang.String 类型的对象,是 JDK 提供的 String 类型操作方法的补充,并且是 null 安全的(即如果输入参数 String 为 null 则不会抛出 NullPointerException ,而是做了相应处理,例如,如果输入...
分类:其他好文   时间:2014-04-29 16:45:47    阅读次数:387
属性器,转换从数据库中读取的状态
[DataMapping("Status", DbType.Int16)] public System.Int16 Status { get; set; } public string StatusValue { get { if (Status == 0) { return "审核拒绝"; } e...
分类:数据库   时间:2014-04-29 16:45:46    阅读次数:344
[Leetcode] Valid Number
Validate if a given string is numeric.Some examples:"0"=>true" 0.1 "=>true"abc"=>false"1 a"=>false"2e10"=>trueNote:It is intended for the problem stat...
分类:其他好文   时间:2014-04-29 16:45:45    阅读次数:398
MFC CFileDialog使用整理
1、CFileDialog构造函数CFileDialog:CFileDialog(BOOL bOpenFileDialog,LPCTSTR lpszDefExt=NULL,LPCTSTR lpszFileName=NULL,DWORD dwFlags = OFN_HIDEREADONLY | OFN...
分类:其他好文   时间:2014-04-29 16:44:46    阅读次数:313
LR学习路错误总结
函数:lr_output_message(lr_eval_string("")); sockets里面的参数是 http里面是{}关于Winsocket协议手动关联,用socketTool录制脚本,发送TCP请求A,请求B,请求A的返回值在请求B中将会用到。最终脚本如下:data.wsdata.ws...
分类:其他好文   时间:2014-04-29 16:44:46    阅读次数:380
webdriver结束进程
使用webdriver做UI自动化测试,driver.quit();方法貌似没能起作用,执行完成后,还是一堆页面和进程在。所以就只能简单粗暴地杀进程了public void stop(){driver.quit();String name = null;try {name = getValue("d...
分类:Web程序   时间:2014-04-29 16:35:46    阅读次数:609
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!