摘要:
C# is pretty flexible in syntax which by means of working with delegate or lambda expressionallows one to define subroutine logic within the argument list of a method call where it is passed.It is really cool, though it's still not clear whether C# directly or indirectly supports (probably not) 阅读全文
摘要:
Quaternion is a very interesting mathematical concept that I had never touched before I reviewed the source code in the recent project I've been involved in.It is a number system that extends complex numbers discovered by the great mathematician Sir William Rowan Hamilton in 1843 and is no less 阅读全文
摘要:
1. 嵌套的泛型类型或方法的实例化:class GenericClass<T>
{ public class NestedGenericClass<T2> { ... } public void GenericMethod<T2>(T2 t) { ... }
}为了通过Reflection实例化以上的NestedGenericClass<>和GenericMethod<>,必须照顾到它们的包含类,即GenericClass<>。通常以为以下的过程会完成实例化到genNestedCls类型变量中:Type gcls ... 阅读全文
摘要:
To continue the topic of why Java still there since the advent of .NET 2.0; Recently as required by the work, I had to have a look at the Hibernate technology. And as the projects we are on are either .NET or native Visual C++ based, if we need to do any data mapping, we have to find technologies th 阅读全文
摘要:
Last night I had a dream, from which I can make a sketch of a game that is worth a good plan and design.Interestingly, even in the dream itself, as I was kind of going through the process on which the game would be based, I was already aware that it could be made a game from and made the decision to 阅读全文
摘要:
The description of the question: Locate the consecutive sub-list in a list that has the highest sum of values.For example:Given a list: (-1, 4, -2, 3, 1, 2, -2), the sub-list to return should be (4, -2, 3, 1, 2) with sum of values being 8.First thought of the question:The solution is expected to be 阅读全文
摘要:
1. 系统集成的基础设施RPC (Remote Procedure Call)RPC是现代C/S和分布式程序的基础概念之一,通常由具体的技术来实现。以下是远程通信通常遵循的模式:客户程序 <-> 桩(残根)函数接口 <-> Channel(协议栈通信通路) <-> 桩(残根)函数接口 <-> 服务程序优点: 隐藏传输细节; 简化; 透明桩函数接口的作用: 程序参数和通信栈上数据之间的转化、组织和传递。CORBA (COmmon Request Broker Architecture)CORBA曾经非常流行的一种RPC模式。其基本概念包括:物件Ob 阅读全文
摘要:
内容创建中…… 阅读全文
摘要:
使用IEFBR14使用IEBCOPY,IEBGENER使用程序SORT使用IDCAMS创建VSAM文件ESDS使用IDCAMS创建VSAM文件KSDS使用IDCAMS创建VSAM文件RRDS使用IDCAMS创建次索引(Alternate Index)(未完待续) 阅读全文
摘要:
1. 代码结构 COBOL的源程序的代码主体部分必须从第8列开始(A区域),通常包括分区Division,分段Section和第一级的数据等。 其第7列为指示字符保留,例如*表示注释行,-表示续行等。前6列为行号。第12列开始为B区域,一般是实体内容(代码实现), 第二级以上的数据等。73列开始之后为卡号,现已不使用,但不能作为程序的一部分,编译器会忽略这部分的代码。COBOL的源程序有一套比较刻板的代码区域划分系统,一般顺序如下:IDENTIFICATIONDIVSION 标识区,是程序的说明部分。包含PROGRAM-ID和AUTHOR,通常只起到注释作用。ENVIRONME... 阅读全文