<!--打赏 End-->
摘要: 任务→分离→确定 在这个位置可以找到分离后的数据库 C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA 执行的sql 如下 USE [master]GOEXEC master.dbo.sp_detach_db @d 阅读全文
posted @ 2017-11-25 13:59 mikefts 阅读(408) 评论(0) 推荐(0) 编辑
摘要: static void Main(string[] args) { Regex reg = new Regex("the"); string str = "today the ,the"; Match matchSet; matchSet = reg.Match(str); if (matchSet 阅读全文
posted @ 2017-11-21 17:43 mikefts 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 参考 https://www.cnblogs.com/kakakade/p/4562467.html https://www.cnblogs.com/tonysuen/archive/2010/03/04/1678447.html Length IndexOf Substring() split j 阅读全文
posted @ 2017-11-21 14:57 mikefts 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 素数 class Program { public static void GenPrimes(int[] arr) { bool flag = true; for (int i = 2; i < arr.Length; i++) { for (int j = i+1; j < arr.Length 阅读全文
posted @ 2017-11-20 22:29 mikefts 阅读(205) 评论(0) 推荐(0) 编辑
摘要: class Program { enum DigitType { ones=1,tens=10} static void DisplayArray(int[] n) { for (int i = 0; i <= n.GetUpperBound(0); i++) { Console.Write(n[i 阅读全文
posted @ 2017-11-20 21:47 mikefts 阅读(115) 评论(0) 推荐(0) 编辑
摘要: [Serializable] [ComVisible(true)] [DebuggerDisplay("Count = {Count}")] [DebuggerTypeProxy(typeof(Stack.StackDebugView))] public class Stack : ICollect 阅读全文
posted @ 2017-11-16 09:47 mikefts 阅读(143) 评论(0) 推荐(0) 编辑
摘要: #region 查找 public static bool SeqSearch(int[] arr, int value) { for (int i = 0; i < arr.Length; i++) { if (arr[i] == value) { return true; } } return 阅读全文
posted @ 2017-11-15 06:54 mikefts 阅读(135) 评论(0) 推荐(0) 编辑
摘要: static void Main(string[] args) { int a = 20; int b = 30; int c; SwapMethod(ref a, ref b); Console.WriteLine(" After Swap a is {0},b is {1} ", a, b); 阅读全文
posted @ 2017-11-15 06:21 mikefts 阅读(110) 评论(0) 推荐(0) 编辑
摘要: class Program { static void Main(string[] args) { int[] arr=new int[10]; Random rnd = new Random(100); for (int i = 0; i <arr.Length; i++) { arr.SetVa 阅读全文
posted @ 2017-11-13 00:18 mikefts 阅读(108) 评论(0) 推荐(0) 编辑
摘要: mscorlib.dll namespace System [Serializable][ComVisible(true)]public abstract class Array : ICloneable, IList, ICollection, IEnumerable, IStructuralCo 阅读全文
posted @ 2017-11-12 22:39 mikefts 阅读(181) 评论(0) 推荐(0) 编辑