摘要: namespace ConsoleApplication1{ class Program { static void Main(string[] args) { Test t1 = new Test(); Test t2 = new Test(); Console.WriteLine(t1.Equals(t2)); } } class Test { //在这里补充代码使输出为True }} 阅读全文
posted @ 2011-05-09 15:32 fuck you 阅读(138) 评论(1) 推荐(0)
摘要: 文件读写。使用控制台应用程序编写2个函数,函数一为Create()用于创建一个名叫test.txt的文本文件,文件内容为10行的*。格式如下*******************************************************函数二位Read()用于将文本文件的内容读取出来,打印到控制台中。打印格式为*******************************************************第一个:public class Create { public void test() { StringBuilder sb=new StringBuilder( 阅读全文
posted @ 2011-05-05 17:54 fuck you 阅读(162) 评论(0) 推荐(0)
摘要: using System;using System.Threading;using System.IO;using System.Text;using System.Reflection;namespace ConsoleApplication7{ class Program { static void Main(string[] args) { //step 1 Test i = new Test(); i.Age = 5; i.Name = "cp"; Test j = i.CopySelf(); j.Name = "rcc"; j.Age = 4; 阅读全文
posted @ 2011-05-05 17:52 fuck you 阅读(139) 评论(0) 推荐(0)