摘要:1 /// 2 /// 冒泡排序法-for循环 3 /// 4 /// 5 private static void BubbleSort(int[] array) 6 { 7 ...
阅读全文
摘要:1 DataTable dt = new DataTable(); 2 //删除列 3 dt.Columns.Remove("Sex"); 4 dt.Columns.Remove("Age"); 5 6 //调整列顺...
阅读全文
摘要:1 /// 2 /// 修改数据表DataTable某一列的类型和记录值(正确步骤:1.克隆表结构,2.修改列类型,3.修改记录值,4.返回结果) 3 /// 4 /// 数据表DataTable 5 /// 数据表DataTable 6 pri...
阅读全文
摘要:public string RandCode(int n) { char[] arrChar = new char[]{ 'a','b','d','c','e','f','g','h','i','j','k','l','m','n','p','r','q','s','t','u'
阅读全文
摘要:if (Directory.Exists(HttpContext.Current.Server.MapPath(HttpContext.Current.Request.ApplicationPath + "/xls"))) { foreach (string filename in Directory.GetFiles(HttpContext.Current.Server.MapPath(HttpContext.Current.Request.ApplicationPath + "/xls"))) { File.Delete(filename); } }
阅读全文