摘要: int s_max = 0;for (int i = 0; i ar[i]) { int temp = ar[i]; ar[i] = ar[j]; ar[j] = temp; } }}if (ar.Length >= 2){ s_max= ar[ar.Length - 2];}另一种方法 for ... 阅读全文
posted @ 2015-11-16 15:38 acdyf 阅读(187) 评论(0) 推荐(0) 编辑
摘要: int i = 2000;object o = (object)i; i= 2001;int j = (int)o;Console.WriteLine("{0},{1},{2}", i, o, j); 结果:2001,2000,2000 解读:object o 为装箱的操作,int j为拆箱操作。 ... 阅读全文
posted @ 2015-11-16 15:29 acdyf 阅读(157) 评论(0) 推荐(0) 编辑
摘要: public abstract class abstractlist {public abstractlist(){Console.WriteLine("A");}public void ceshi(){Console.WriteLine("A.FUN()");} }public class Cla... 阅读全文
posted @ 2015-11-16 15:26 acdyf 阅读(167) 评论(0) 推荐(0) 编辑