摘要: 1 interface IUser 2 { 3 void Insert(User user); 4 User GetUser(int id); 5 } 6 7 class User 8 { 9 private int _id; 10 private string _name; 11 12 publi 阅读全文
posted @ 2017-03-16 13:47 yixiu868 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 1 abstract class LeiFeng 2 { 3 public abstract void Sweep(); 4 public abstract void Wash(); 5 public abstract void BuyRice(); 6 } 7 8 class Undergradu 阅读全文
posted @ 2017-03-16 09:38 yixiu868 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 1 static void sort(int[] a) 2 { 3 for (int i = 0; i < a.Length; i++) 4 { 5 for (int j = i; j < a.Length; j++) 6 { 7 if (a[i] > a[j]) 8 { 9 int temp = 阅读全文
posted @ 2017-03-15 09:50 yixiu868 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 1 public static void insertion_sort(int[] a){ 2 for(int i = 1; i < a.length; i++) { 3 if(a[i-1] > a[i]) { 4 int temp = a[i]; 5 int j = i; 6 while(j > 阅读全文
posted @ 2017-03-15 09:39 yixiu868 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-03-15 09:28 yixiu868 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 1 public class Operation 2 { 3 private double _numberA = 0; 4 private double _numberB = 0; 5 6 public double NumberA 7 { 8 get { return _numberA; } 9 阅读全文
posted @ 2017-03-15 01:24 yixiu868 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 1 public class QuickSort { 2 public static void sort(int[] a, int lo, int hi) { 3 int start = lo; 4 int end = hi; 5 int key = a[lo]; 6 7 while(start < 阅读全文
posted @ 2017-03-15 00:05 yixiu868 阅读(172) 评论(0) 推荐(0) 编辑
摘要: SQLserver中用convert函数转换日期格式2008-01-15 15:51SQLserver中用convert函数转换日期格式 SQL Server中文版的默认的日期字段datetime格式是yyyy-mm-dd Thh:mm:ss.mmm 例如: select getdate() 200 阅读全文
posted @ 2017-03-14 10:51 yixiu868 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 动态 SQL MyBatis 的强大特性之一便是它的动态 SQL。如果你有使用 JDBC 或其他类似框架的经验,你就能体会到根据不同条件拼接 SQL 语句有多么痛苦。拼接的时候要确保不能忘了必要的空格,还要注意省掉列名列表最后的逗号。利用动态 SQL 这一特性可以彻底摆脱这种痛苦。 通常使用动态 S 阅读全文
posted @ 2017-02-08 10:19 yixiu868 阅读(432) 评论(0) 推荐(0) 编辑
摘要: 获得随机颜色 1 private static Color getRandomColor() { 2 return new Color(random.nextInt(255), random.nextInt(255),random.nextInt(255)); 3 } 获得颜色的反色 1 priva 阅读全文
posted @ 2017-02-04 17:50 yixiu868 阅读(429) 评论(0) 推荐(0) 编辑