摘要: public static int Find(T[] items,T item) { for (int i = 0; i (new int[] { 1, 2, 3, 4, 5, 6, 8, 9 }, 6); Console.WriteLine("6数组中的位置:" + i.ToString()); Console.ReadLine(); 阅读全文
posted @ 2013-07-08 11:27 才高远志 阅读(114) 评论(0) 推荐(0) 编辑
摘要: openFileDialog1.Filter = "文本文件(*.txt)|*.txt";//设置过滤参数 openFileDialog1.ShowDialog();//显示打开文件的对话框 textBox1.Text = openFileDialog1.FileName; StreamReader sr = new StreamReader(textBox1.Text, Encoding.Default); textBox2.Text = sr.ReadLine(); sr.Close(); 阅读全文
posted @ 2013-07-08 11:25 才高远志 阅读(151) 评论(0) 推荐(0) 编辑