Definition Ensure a class has only one instance and provide a global point of access to it.Participants The classes and/or objects participating in th...
分类:
其他好文 时间:
2014-09-01 12:19:33
阅读次数:
162
坐标系与基本图元(1)Direct3D基本图元图元(primitives)是Direct3D中定义的基本图形表示,它是组成一个单一实体的一组顶点。最简单的图元是三维坐标系中多个点的集合,称为点列表(point list)。通常,图元是多边形(polygon),一个多边形是由至少三条边组成的封闭图形。...
分类:
其他好文 时间:
2014-09-01 12:18:03
阅读次数:
224
一、约束的分类 在SQLServer中,有3种不同类型的约束。 1、实体约束 实体约束是关于行的,比如某一行出现的值就不允许出现在其他行,例如主键。 2、域约束 域约束是关于列的,对于所有行,某一列有那些约束,例如CHECK约束。 3、参照完整性约束 如果某列的值必须与其他...
分类:
数据库 时间:
2014-09-01 12:08:43
阅读次数:
296
玩家移动1.检查位置包auto& mpos = m_spBase->getMapPos(pos.tgtPos);if(!check_move_pos(pos, pl)) return;2.跟新当前位置及方向,更新客户端发过来的位置pl->last_move_mode = EnumMoveMod...
分类:
移动开发 时间:
2014-08-31 18:35:11
阅读次数:
299
Before you do this, you should be in a GOME or KDE environment, then type the following commands to check whether you've stalled the app:$ type evince...
分类:
系统相关 时间:
2014-08-31 17:01:21
阅读次数:
224
/*** 在地头上设置Marker标记*/public void setMarker(LatLng point){setLatitude.setText(point.latitude+""); setLongitude.setText(point.longitude+""); setName.s.....
分类:
其他好文 时间:
2014-08-31 15:38:11
阅读次数:
206
必须选择下面的基本模式:Query, Verify, Signature Check, Install/Upgrade/Freshen, Uninstall, Initialize Database, Rebuild Database, Resign, Add Signature, Set Owne...
分类:
系统相关 时间:
2014-08-31 13:11:31
阅读次数:
278
1,浮点数。python中的计算(转载自知乎)Python 2.7 中, a / b = c,如果 a 和 b 均为 integer,则结果 c 也会被丢掉小数部分然后变成 integer 例如:5 / 2 = 2,若要准确的小数结果,将 a 或 b 变为 floating-point number...
分类:
编程语言 时间:
2014-08-30 20:21:49
阅读次数:
264
也是简单的最小生成树算法
不过添加了一些新的东西,需要对最小生成树算法 以及其中的 并查集的使用 有一些比较深入的理解。
处理问题的方法也有些复杂
#include
#include
#include
#include
using namespace std;
const int maxn = 1005;
struct point
{
int x;
int y;
}pp[m...
分类:
其他好文 时间:
2014-08-30 16:28:59
阅读次数:
149
Point point1 = sprite1->convertToNodeSpace(sprite2->getPosition());绝对坐标转相对坐标newP2 = (p2.x-p1.x, p2.y-p1.y)Point point2 = sprite1->convertToWorldSpace(...
分类:
其他好文 时间:
2014-08-30 15:07:49
阅读次数:
318