上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 28 下一页
摘要: using (FileStream wir=new FileStream(@"C:\Documents and Settings\Administrator\桌面\1.txt",FileMode.OpenOrCreate,FileAccess.Write)) { string a = " 所得税速... 阅读全文
posted @ 2015-11-03 09:38 尘梦 阅读(788) 评论(0) 推荐(0) 编辑
摘要: static void Main(string[] args) { using (FileStream red = new FileStream(@"C:\Documents and Settings\Administrator\桌面\1.txt",FileMode.OpenOrCreate,Fil... 阅读全文
posted @ 2015-11-03 09:24 尘梦 阅读(159) 评论(0) 推荐(0) 编辑
摘要: Dictionary d = new Dictionary(); int i=0; string s = "Welcome to china"; char[] c = new Char[s.Length]; fo... 阅读全文
posted @ 2015-10-27 11:19 尘梦 阅读(182) 评论(0) 推荐(0) 编辑
摘要: string str = null; Console.WriteLine("请输入一个字符串"); str = Console.ReadLine(); char[] c = new char[str.Length]; ... 阅读全文
posted @ 2015-10-27 10:48 尘梦 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 将一个数组中的奇数放到一个集合中,再将偶数放到另一个集合中。 最终将两个集合合并为一个集合,并且奇数显示在左边 偶数显示在右边。 List l = new List(); List l1=new List(); int[] num = {1,2... 阅读全文
posted @ 2015-10-27 10:19 尘梦 阅读(231) 评论(0) 推荐(0) 编辑
摘要: public function index(){ C('TOKEN_ON',false);//关闭表单令牌 读取配置 //查询指定id的栏目信息 $id=I('get.id');//类别ID $topcate=M('Column')->whe... 阅读全文
posted @ 2015-10-26 19:03 尘梦 阅读(568) 评论(0) 推荐(0) 编辑
摘要: 2、从一个记录了学生成绩的文本文档,每个学生成绩是一行,每行是用 | 分割的数据,用 | 分割的域分别是姓名、年龄、成绩、年级,写程序取出各个年级成绩最高学生的成绩、年级放到集合中。提示:(1)使用 string[] lines=System.IO.File.ReadAllLines(@"c:/ro... 阅读全文
posted @ 2015-10-23 15:16 尘梦 阅读(440) 评论(0) 推荐(0) 编辑
摘要: Hashtable h = new Hashtable(); ArrayList l = new ArrayList(); string[] lines = System.IO.File.ReadAllLines(@"C:\Users\尘梦\Deskto... 阅读全文
posted @ 2015-10-23 11:38 尘梦 阅读(164) 评论(0) 推荐(0) 编辑
摘要: List list = new List(10); Random r=new Random(); int num = 0; for (int i = 0; i < 10; i++) { ... 阅读全文
posted @ 2015-10-23 10:21 尘梦 阅读(554) 评论(0) 推荐(0) 编辑
摘要: 看例子把出现频率a 4 b 2 c1 d1则c d b a1 1 2 4则c d 2 就变成了 2 2 4则2 2 4则变成了4 4在变则成饿了 8所以 8 4 a2 bc d则左节点为0 右节点为1则a为1 b 01 c 000 d 001 阅读全文
posted @ 2015-10-19 14:36 尘梦 阅读(158) 评论(0) 推荐(0) 编辑
上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 28 下一页