摘要: const int N = 4; //按钮的行、列数 Button[,] buttons = new Button[N, N]; //按钮的数组 private void Form1_Load(object sender, EventArgs e) { //产生所有按钮 GenerateAllBut 阅读全文
posted @ 2019-07-25 17:19 MichaelCecil 阅读(500) 评论(0) 推荐(0) 编辑
摘要: using System; public class PrimeFilter{ public static void Main( string [] args ){ int N = 100; bool [] a = new bool[N+1]; for( int i=2; i<=N; i++ ) a 阅读全文
posted @ 2019-07-25 16:57 MichaelCecil 阅读(981) 评论(0) 推荐(0) 编辑
摘要: Random random = new Random(); Color getRandomColor() { return Color.FromArgb( random.Next(256) , random.Next(256) , random.Next(256) ); } private void 阅读全文
posted @ 2019-07-25 16:21 MichaelCecil 阅读(7061) 评论(0) 推荐(0) 编辑
摘要: using System; class Jiaogu { public static void Main(string[] args) { for( int n=1; n<=100; n++ ) { int a = n; while( a != 1 ) { Console.Write( " " +a 阅读全文
posted @ 2019-07-25 16:11 MichaelCecil 阅读(592) 评论(0) 推荐(0) 编辑
摘要: int a, b; string op; int result; Random rnd = new Random(); private void btnNew_Click(object sender, System.EventArgs e) { a = rnd.Next( 9 ) + 1; b =  阅读全文
posted @ 2019-07-25 16:04 MichaelCecil 阅读(1754) 评论(0) 推荐(0) 编辑