//导出功能 protected void btnExport(object sender, EventArgs e) { //用来打开下载窗口 string fileName = "中心联系方式"; ...
获取网卡MAC第一种不能判断当前使用的是那张网卡 1 /// 2 /// 获取网卡ID代码 3 /// 4 /// 5 public static string GetNetworkAdpaterID() 6 ...
在Java项目开发中,字符串是最长使用的数据类型,而有关字符串的String、StringBuilder、StringBuffer三者又常常让人分不清楚什么时候该使用哪个。特此整理一下。String字符串常量 大家都知道String是一个不可变的类,任何对String的改变都会引发新的String....
分类:
编程语言 时间:
2015-02-03 12:52:47
阅读次数:
182
从位置讲:1.String是.NET Framework里面的String,小写的string是C#语言中的string2.如果把using System;删掉,没有大写的String了,System是.NET Framework类库中的一个函数名.从性质讲:1.string是关键字,String....
在使用JDBC时,会重复的写很多重复的代码,例如 Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; String ...
分类:
数据库 时间:
2015-02-03 12:43:01
阅读次数:
226
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
//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
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
解题思路:
求前缀数组出现的次数之和,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