- 博客(1)
- 资源 (2)
- 收藏
- 关注
转载 Access 连接字符串
Access 连接字符串 MS ACCESS ODBC开放式接口连接字符串 标准链接: "Driver= {MicrosoftAccessDriver(*.mdb)};DBQ=C:\App1\你的数据库名.mdb;Uid=你的用户名;Pwd=你的密码
2011-10-18 16:50:57
219
.net 字符串排序
用冒泡根据字符串长度排序排序
string[] names = new string[4];
names[0] = "adsaa";
names[1] = "司asdas法所";
names[2] = "sadasaasd";
names[3] = "qwwd";
string tmp = "";
for (int i = 0; i < names.Length; i++)
{
for (int j = i; j < names.Length; j++)
{
if (names[i].Length < names[j].Length)
{
tmp = names[i];
names[i] = names[j];
names[j] = tmp;
}
}
}
for (int i = 0; i < names.Length; i++)
{
Response.Write(names[i] + "<br/>");
}
2012-10-12
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人