码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
U盘是否挂载
private static final String MOUNTS_FILE = "/proc/mounts"; public static boolean isMounted(String path) { boolean blnRet = false; String strLine = null; BufferedReader reader =...
分类:其他好文   时间:2015-04-18 17:52:06    阅读次数:117
leetcode:Roman to Integer
class Solution { public: int romanToInt(string s) { int map[128]; if(s.size()==0) return 0; map['I']=1; map['V']=5; map['X']=10; map['L'...
分类:其他好文   时间:2015-04-18 17:46:15    阅读次数:124
谈谈Delphi中的类和对象:五、类是一种对数据和操作高度的封装机制;六、类是一种代码重用机制
五、类是一种对数据和操作高度的封装机制1)数据封装unit Unit2;interfacetype TEmployee = class; private FName: String; public Constructor Create; f...
分类:Windows程序   时间:2015-04-18 17:42:32    阅读次数:124
C# 多线程、结构体
struct IpAndPort { public string Ip; public int Port; } private void Form1_Load(object sender, EventAr...
分类:编程语言   时间:2015-04-18 17:42:14    阅读次数:146
C# this关键字
使用方式之一:this,在构造函数中使用。当使用构造函数的重载时,可使用this关键字。 1 //构造函数-重载 2 public Student(int id, string name, int age, int math) 3 { 4 ...
分类:Windows程序   时间:2015-04-18 17:24:00    阅读次数:139
字符串匹配——朴素算法、KMP算法
字符串匹配(string match)是在实际工程中经常会碰到的问题,通常其输入是原字符串(String)和子串(又称模式,Pattern)组成,输出为子串在原字符串中的首次出现的位置。通常精确的字符串搜索算法包括朴素搜索算法,KMP, BM(Boyer Moore), sunday, robin-karp 以及 bitap。下面分析朴素搜索算法和KMP这两种方法并给出其实现。假设原字符T串长度N...
分类:编程语言   时间:2015-04-18 16:11:43    阅读次数:246
项目积累——综合
sql += " and HT_CGFKSQ.sqsj >=to_date('"+kssj+"','yyyy-MM-dd')";java.sql.Date.valueOf(qjdpo.getKssjStr())String nowRq = new SimpleDateFormat("yyyy-MM-...
分类:其他好文   时间:2015-04-18 16:06:38    阅读次数:414
Android 用TextView显示超链接、图片
ImageGetter imgGetter = new Html.ImageGetter() { @Override public Drawable getDrawable(String source) { Drawable drawable = n...
分类:移动开发   时间:2015-04-18 16:04:27    阅读次数:122
项目积累——js应用
//解决由前台向后台传值中文乱码的问题encodeURI($("#xmjhbgFile").val())//前台JS中数据加码String fjmc = java.net.URLDecoder.decode(request .getParameter("fjmc"), "utf-8");//后台解码...
分类:Web程序   时间:2015-04-18 16:03:06    阅读次数:257
[C#][转][string 字符串截取
C#几个经常用到的字符串截取一、1、取字符串的前i个字符(1)string str1=str.Substring(0,i);(2)string str1=str.Remove(i,str.Length-i);2、去掉字符串的前i个字符string str1=str.Remove(0,i);strin...
分类:Windows程序   时间:2015-04-18 15:53:46    阅读次数:195
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!