摘要:
const int N = 4; //按钮的行、列数 Button[,] buttons = new Button[N, N]; //按钮的数组 private void Form1_Load(object sender, EventArgs e) { //产生所有按钮 GenerateAllBut 阅读全文
摘要:
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 阅读全文
摘要:
Random random = new Random(); Color getRandomColor() { return Color.FromArgb( random.Next(256) , random.Next(256) , random.Next(256) ); } private void 阅读全文
摘要:
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 阅读全文
摘要:
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 = 阅读全文