会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
忧郁的小学生
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
19
20
21
22
23
24
25
26
27
···
29
下一页
2015年11月3日
filestream文件流
摘要: 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 尘梦
阅读(187)
评论(0)
推荐(0)
2015年10月27日
c#习题之3
摘要: 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 尘梦
阅读(203)
评论(0)
推荐(0)
c#习题之2
摘要: string str = null; Console.WriteLine("请输入一个字符串"); str = Console.ReadLine(); char[] c = new char[str.Length]; ...
阅读全文
posted @ 2015-10-27 10:48 尘梦
阅读(152)
评论(0)
推荐(0)
c#习题
摘要: 将一个数组中的奇数放到一个集合中,再将偶数放到另一个集合中。 最终将两个集合合并为一个集合,并且奇数显示在左边 偶数显示在右边。 List l = new List(); List l1=new List(); int[] num = {1,2...
阅读全文
posted @ 2015-10-27 10:19 尘梦
阅读(253)
评论(0)
推荐(0)
2015年10月26日
php之cms后台文章管理及显示
摘要: public function index(){ C('TOKEN_ON',false);//关闭表单令牌 读取配置 //查询指定id的栏目信息 $id=I('get.id');//类别ID $topcate=M('Column')->whe...
阅读全文
posted @ 2015-10-26 19:03 尘梦
阅读(619)
评论(0)
推荐(0)
2015年10月23日
c#分割习题
摘要: 2、从一个记录了学生成绩的文本文档,每个学生成绩是一行,每行是用 | 分割的数据,用 | 分割的域分别是姓名、年龄、成绩、年级,写程序取出各个年级成绩最高学生的成绩、年级放到集合中。提示:(1)使用 string[] lines=System.IO.File.ReadAllLines(@"c:/ro...
阅读全文
posted @ 2015-10-23 15:16 尘梦
阅读(463)
评论(0)
推荐(0)
c#分割
摘要: Hashtable h = new Hashtable(); ArrayList l = new ArrayList(); string[] lines = System.IO.File.ReadAllLines(@"C:\Users\尘梦\Deskto...
阅读全文
posted @ 2015-10-23 11:38 尘梦
阅读(192)
评论(0)
推荐(0)
c#集合随机数
摘要: 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 尘梦
阅读(586)
评论(0)
推荐(0)
2015年10月19日
哈夫曼编码
摘要: 看例子把出现频率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 尘梦
阅读(180)
评论(0)
推荐(0)
js练习题之查找数组中的位子
摘要: 输出描述:如果数组中存在 item,则返回元素在数组中的位置,否则返回 -1输入例子:indexOf([ 1, 2, 3, 4 ], 3)输出例子:2 function indexOf(arr, item) { if (Array.prototype.indexOf){ return ...
阅读全文
posted @ 2015-10-19 13:38 尘梦
阅读(421)
评论(0)
推荐(0)
上一页
1
···
19
20
21
22
23
24
25
26
27
···
29
下一页
公告