摘要: The Console class also recalls some of my Unix programming memories. When I was a Unix programmer, I used a terminal called SecureCRT, whose window width can be wider than 80 characters. Is 80 enough... 阅读全文
posted @ 2009-03-09 23:08 MainTao 阅读(1915) 评论(0) 推荐(0) 编辑
摘要: 注:C#语言发展十分迅速,而且仍然有很大的提升空间,所以现在写下的有关C#语言上的一些限制,可能过一两年就不同了,所以需要不断更新。至于C++,因为已经很久没怎么变动,所以就容易得多。 (*) 允许初始化成员变量 C#允许 C++不允许 (*) 编译器自动添加默认无参构造函数 c++:当用户实现了有参构造函数,编译器就不添加了。 c#:对于class与C++一样。但对于struct,无论用户实... 阅读全文
posted @ 2009-03-09 20:08 MainTao 阅读(3848) 评论(2) 推荐(0) 编辑
摘要: The class recalls my Unix programming memory :) 阅读全文
posted @ 2009-03-09 14:52 MainTao 阅读(259) 评论(0) 推荐(0) 编辑
摘要: When we want to control the memory layout, we must use System.Runtime.InteropServices namespace, it contains some useful attributes such as StructLayoutAttribute, FieldOffsetAttribute and also some us... 阅读全文
posted @ 2009-03-09 11:09 MainTao 阅读(2220) 评论(0) 推荐(1) 编辑