摘要: map映照容器的元素数据是一个键值和一个映照数据组成的,键值与映照数据之间具有一一映照的关系。 map映照容器的数据结构是采用红黑树来实现的,插入键值的元素不允许重复,比较函数只对元素的键值进行比较,元素的各项数据可通过键值检索出来。 map类支持关联式容器。一个值映射到唯一一个关键字。本质上这种映 阅读全文
posted @ 2015-01-20 21:13 lypzxy 阅读(240) 评论(0) 推荐(0) 编辑
摘要: http://docwiki.embarcadero.com/CodeExamples/XE8/en/Generic_vector_sort_%28C%2B%2B%29#include using namespace std; vector v1;vector ivec1;vector svec(i... 阅读全文
posted @ 2015-01-20 20:24 lypzxy 阅读(284) 评论(0) 推荐(0) 编辑
摘要: Copy the following code in your DelphiUnit.pas file: unit DelphiUnit; interface uses System.Generics.Collections; type TCity = class Country: String; 阅读全文
posted @ 2015-01-20 14:09 lypzxy 阅读(987) 评论(0) 推荐(0) 编辑
摘要: 如果客户端是TCP/IP是短连接的情况就没有必要了。 1 type 2 pClientConns = ^TClientConns; // 客户连接 3 TClientConns = record 4 clientid: integer; 5 ip: string; 6 port: str... 阅读全文
posted @ 2015-01-20 13:34 lypzxy 阅读(574) 评论(0) 推荐(0) 编辑
摘要: From http://blog.csdn.net/sunstone/article/details/5282666 DataSnap高级技术(7)—TDSServerClass中Lifecycle生命周期三种属性说明 Lifecycle 三种属性: Session、Invocation、Serve 阅读全文
posted @ 2015-01-20 10:35 lypzxy 阅读(912) 评论(0) 推荐(0) 编辑