摘要: using System; class A { public A() { PrintFields(); } public virtual void PrintFields(){} } class B:A { int x=1; int y; public B() { y=-1; } public ov 阅读全文
posted @ 2019-06-03 23:03 编程菜小鸟 阅读(341) 评论(0) 推荐(0)
摘要: int Num = this.TextBox1.Text.ToString() ;int Sum = 0 ;for (int i = 0 ; i < Num + 1 ; i++){ if((i%2) == 1) { Sum += i ; } else { Sum = Sum - I ; }}Syst 阅读全文
posted @ 2019-06-03 16:45 编程菜小鸟 阅读(891) 评论(0) 推荐(0)
摘要: foreach (Control aa in this.Form.Controls){ if (aa.GetType().ToString() == "System.Web.UI.WebControls.TextBox") { ((TextBox)aa).Text = string.Empty; } 阅读全文
posted @ 2019-06-03 16:27 编程菜小鸟 阅读(238) 评论(0) 推荐(0)
摘要: int [] array = new int [*] ; int temp = 0 ; for (int i = 0 ; i < array.Length - 1 ; i++) { for (int j = i + 1 ; j < array.Length ; j++) { if (array[j] 阅读全文
posted @ 2019-06-03 16:26 编程菜小鸟 阅读(99) 评论(0) 推荐(0)