摘要: 从第一次用C#到现在也有一年半多了,但.net到底是什么,这个定义还蛮精辟的。 Probably the best way to think of .NET is as a big control system with two key elements. First is the .NET framework class library. Second, and the core of .NE... 阅读全文
posted @ 2009-02-09 17:38 Rossi 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 1,two sorted array. merge them to a sorted one. 2, input a unsigned int(32), output the strings of the number. eg. input: 9876, output: nine thousand eight hundred seventy six. 3, N integers. a numb... 阅读全文
posted @ 2009-01-08 16:37 Rossi 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 又傻B了,是abstract方法必须被重写,virtual的方法可以不被重写。 阅读全文
posted @ 2009-01-07 20:35 Rossi 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 只是说abstract的方法只能存在与abstract类中,但并不是说abstract类中只有abstract方法。 阅读全文
posted @ 2009-01-07 19:17 Rossi 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 真是的,这个东西看了不用,一段时间后就忘了。 delegate相当于函数指针,可以把其他函数加入到delegate实体中,这样用调用delegate实体来实现对所加入函数的调用。 比如 public delegate deleTest(string name); 可以deleTest test = new deleTest(testFun);把testFun挂到test上。 其中testFu... 阅读全文
posted @ 2009-01-07 18:02 Rossi 阅读(284) 评论(0) 推荐(0) 编辑
摘要: 前序 Root-Left-Right 中序 Left-Root-Right 后序 Left-Right-Root 阅读全文
posted @ 2008-12-28 19:43 Rossi 阅读(94) 评论(0) 推荐(0) 编辑
摘要: The candidate list of Britain China internship selected by China Scholarship Council is out. I am in. So I need to prepare for the interview in middle of February 2009 by GTI. I get about a month to p... 阅读全文
posted @ 2008-12-24 13:58 Rossi 阅读(319) 评论(0) 推荐(0) 编辑
摘要: $ gedit /etc/apt/sources.list $ sudo apt-get update $ apt-cache search ibus |grep ^ibus Ros: Here is the Pipe $ sudo apt-get install ibus ibus-table $ sudo dpkg -i xxxxx.deb 阅读全文
posted @ 2008-12-20 17:10 Rossi 阅读(139) 评论(0) 推荐(0) 编辑
摘要: #include 编译器从标准库路径开始搜索 #include "filename.h" 编译器从用户工作路径开始搜索 #ifndef #define #endif 用于防止该头文件被重复引用 阅读全文
posted @ 2008-12-20 14:57 Rossi 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 任何数据的起始地址都是系统字长(系统的数据总线宽度)的整数倍。一个结构体被看做是一个数据整体,那么在保证了结构体的起始地址是字长整数倍的时候,就有可能导致其中数据成员的起始地址不是字长整数倍,再从而导致读取一个成员的内容要访问两次内存。所以编译器就会对结构体的成员的存储地址进行调整,使其能保证所有低于等于一个字长的数据都能在一次内存读取中完成。 Code Code highlighting p... 阅读全文
posted @ 2008-12-19 12:28 Rossi 阅读(165) 评论(0) 推荐(0) 编辑