一、聚合函数(Aggregate Functions)AVG:求平均 count:计算个数 MAX:最大值MIN:最小值SUM:求和例:select count(*) as 人数 from student--as 人数,列名显示为“人数”select(select count (*) from st...
分类:
其他好文 时间:
2014-11-25 22:46:44
阅读次数:
178
下面是 Point class 的一个加法运算符的可能实现内容:class Point{ friend Point opsrator+(const Point&, const Point&);};Pointopsrator+(const Point &lhs, const Poi...
分类:
其他好文 时间:
2014-11-25 15:53:07
阅读次数:
234
nonmember friend 或 nonstatic member 或 static member 函数都会被转化为相同的形式, 因此三者的效率完全相同.另外, inline member function 的效率一直是最高的(前提是简单操作), 优化后的效率更是高, 这是因为编译器会将被视为不...
分类:
其他好文 时间:
2014-11-24 22:20:10
阅读次数:
241
我们知道Start() Update() 等之类的 事件函数 在Unity 主线程中是依次调用的。至于调用的顺序可以查手册。由此继承机制也会发生一些改变。测试一:public class MyTest2 : MonoBehaviour{ void Start () { //Eve...
分类:
编程语言 时间:
2014-11-24 22:12:09
阅读次数:
310
what is mosquitto?check this out!http://mosquitto.orgwhat is MQTT?check this out.http://mqtt.orgsudo apt-get install libc-ares-dev libc-ares2 -ywget -...
分类:
系统相关 时间:
2014-11-23 18:57:35
阅读次数:
312
看过之前的 virtual function可以知道其实现模型: 每一个 class 有一个 virtual table. 内含该 class 之中 有作用的 virtual function 地址, 然后每个 object 有一个 vptr, 指向 virtual table 的所在. 在这一节中...
分类:
其他好文 时间:
2014-11-23 17:19:40
阅读次数:
226
The malloc package void* malloc(size_t size) void free (void *p) other functions calloc: Version of malloc that initializes allocated block to zero re...
分类:
其他好文 时间:
2014-11-23 17:18:55
阅读次数:
180
如果一个 normalize() 是一个 virtual member function, 那么以下的调用:ptr->normalize();将会被内部转化为:(*ptr->vptr[1])(ptr);其中:vptr 表示由编译器生成的指针, 指向 virtual table, 它被安插在每一个声明...
分类:
其他好文 时间:
2014-11-23 15:49:13
阅读次数:
309
原文 http://www.kynosarges.de/DotNetVersion.htmlInno Setupby Jordan Russell is a great installation scripting program, but lacks a built-in function to ...
分类:
Web程序 时间:
2014-11-23 01:49:26
阅读次数:
284
我 知道 Monobehaviour 上的 那些event functions 是 在主线程 中 按 顺序调用的。这点从Manual/ExecutionOrder.html 上的 一张图就可以看出来。 既然按 顺序 调用,那么 如果 比如update 在这一次 调用的 时候 执行 了 大量的运算 ....
分类:
编程语言 时间:
2014-11-23 00:26:38
阅读次数:
251