摘要: int n = 100,max = 200,min=100; Random random = new Random(); List<int> list = new List<int>(100); for (int i = 0; i < n; i++) { //若max-min<n将进入无限循环 int temp = random.Next(min, max); if (list.Contains(temp) == t... 阅读全文
posted @ 2012-10-20 16:52 尼姑哪里跑 阅读(179) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using 人事考勤系统;using System.Collections;using AnbySQL;namespace 人事考勤系统{ public partial class Form1 : Form { publi... 阅读全文
posted @ 2012-10-20 14:58 尼姑哪里跑 阅读(263) 评论(0) 推荐(0) 编辑
摘要: View Code using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Collections;namespace Ienumerable{ class Program { static void Main(string[] args) { MyList<int> mylist = new MyList<int>(); for (int x = 0; x < 5; x++) ... 阅读全文
posted @ 2012-10-20 09:36 尼姑哪里跑 阅读(142) 评论(0) 推荐(0) 编辑