码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
C#导入、导出功能
//导出功能 protected void btnExport(object sender, EventArgs e) { //用来打开下载窗口 string fileName = "中心联系方式"; ...
分类:Windows程序   时间:2015-02-03 13:01:30    阅读次数:196
C# 获取网卡MAC的两种方式
获取网卡MAC第一种不能判断当前使用的是那张网卡 1 /// 2 /// 获取网卡ID代码 3 /// 4 /// 5 public static string GetNetworkAdpaterID() 6 ...
分类:Windows程序   时间:2015-02-03 13:01:28    阅读次数:238
java中String、StringBuilder、StringBuffer三者的区别
在Java项目开发中,字符串是最长使用的数据类型,而有关字符串的String、StringBuilder、StringBuffer三者又常常让人分不清楚什么时候该使用哪个。特此整理一下。String字符串常量 大家都知道String是一个不可变的类,任何对String的改变都会引发新的String....
分类:编程语言   时间:2015-02-03 12:52:47    阅读次数:182
String和string的区别(C#)
从位置讲:1.String是.NET Framework里面的String,小写的string是C#语言中的string2.如果把using System;删掉,没有大写的String了,System是.NET Framework类库中的一个函数名.从性质讲:1.string是关键字,String....
分类:Windows程序   时间:2015-02-03 12:51:42    阅读次数:143
使用模板方法模式简化JDBC操作
在使用JDBC时,会重复的写很多重复的代码,例如 Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; String ...
分类:数据库   时间:2015-02-03 12:43:01    阅读次数:226
rails数据库查询 N + 1 查询的解决办法
schema.rbActiveRecord::Schema.define(version: 20150203032005) do create_table "addresses", force: true do |t| t.integer "client_id" t.string ...
分类:数据库   时间:2015-02-03 12:29:16    阅读次数:208
Javascript:字符串对象(string)的基本操作
Javascript字符串基本操作。...
分类:编程语言   时间:2015-02-03 11:16:07    阅读次数:190
存储过程调用 遍历返回结果集
//java调用存储过程 使用游标遍历结果集 public void getCallableStatement(){ CallableStatement cs=null; Connection conn=this.getConnection(); //存储过程 用户名.procedure String procedure="{call emp_pkg.pro_read(?,?)}";...
分类:其他好文   时间:2015-02-03 11:13:38    阅读次数:180
[LeetCode]Longest Common Prefix
Q:Write a function to find the longest common prefix string amongst an array of strings. 这道题是要求一组字符串的最长相同前缀。思路很简单,一个一个扫描。 两种特殊情况如下: 1.若strs为空,则返回空字符串 2.若strs只含有一个字符串,则返回该字符串 下面为一般情况:依次取strs[0]的前1...
分类:其他好文   时间:2015-02-03 11:05:41    阅读次数:167
HDU 3336 Count the string(KMP算法next数组的应用)
解题思路:  求前缀数组出现的次数之和,next[i] > 0 表示长度为next[i]的前缀又出现了一次。 #include #include #include #include #include #include #include #include #include #define LL long long #define FOR(i,x,y) for(int i=x;i...
分类:编程语言   时间:2015-02-03 11:03:34    阅读次数:221
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!