登山者的仰望

不仅要走好脚下的每一步,也要仰望山顶

2008年5月17日

C#获取应当程序当前目录的方法

摘要: 1、Environment.CurrentDirectory private void button1_Click(object sender, System.EventArgs e) {  MessageBox.Show(System.Environment.CurrentDirectory.ToString()); }  2、Application.StartupPat... 阅读全文

posted @ 2008-05-17 11:31 光光GG 阅读(513) 评论(0) 推荐(0)
LCS 最长公共子串算法实现 C#

摘要: 返回最长串长度 public static int lcs(ref string str1, ref string str2) { if (str1 == str2) return str1.Length; int[] maxtix = new int[str1.Length]; ... 阅读全文

posted @ 2008-05-17 11:28 光光GG 阅读(1345) 评论(1) 推荐(0)