摘要: string str = "今天天气好晴朗,处处好风光。"; //需要将字符串转化成字节数组 byte[] buffer = Encoding.Default.GetBytes(str); File.Write... 阅读全文
posted @ 2015-08-02 21:43 骏码信息 阅读(372) 评论(0) 推荐(0) 编辑
摘要: File.Create(@"C:\Users\shuai\Desktop\new.txt"); Console.WriteLine("创建成功"); Console.ReadKey(); File.Delete... 阅读全文
posted @ 2015-08-02 15:06 骏码信息 阅读(180) 评论(0) 推荐(0) 编辑
摘要: //写一个长度为10的集合,要求在里面随机存放10个数字(0-9); //但是要求所有的数字不重复。 ArrayList list = new ArrayList(); Random r = new Rando... 阅读全文
posted @ 2015-08-02 10:21 骏码信息 阅读(338) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Collections;namespace 集合的小... 阅读全文
posted @ 2015-08-02 10:07 骏码信息 阅读(711) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace 面向对象... 阅读全文
posted @ 2015-08-02 09:12 骏码信息 阅读(268) 评论(0) 推荐(0) 编辑