--判断数据库是否存在if exists (select * from sys.databases where name = '数据库名')drop database [数据库名]--判断表是否存在if exists (select * from sysobjects where id = obje...
分类:
数据库 时间:
2014-09-18 22:02:44
阅读次数:
276
最近使用QML制作项目,按照要求,需要制作成分页的插件。遗憾的是,QML的控件库Qt Quick都没有现成的控件,于是我尝试着自己实现自绘页面导航条。...
分类:
其他好文 时间:
2014-09-18 18:55:24
阅读次数:
198
快速排序
void quick_sort(int array[], int begin, int end)
{
if(end > begin)
{
int pivot = begin;
int last_small = begin;
int i = end;
while(last_small != i)
{
if(array[i] <= array[pivot])
...
分类:
其他好文 时间:
2014-09-18 18:54:34
阅读次数:
181
function getTmp(){ $file_name = 'orderTemp.xlsx'; $file_path = dirname(__FILE__); #判断一下文件是否存在 if(! file_exists($file_path. '/' .$file_name...
分类:
其他好文 时间:
2014-09-18 18:32:54
阅读次数:
141
比如在Northwind数据库中有一个查询为SELECT c.CustomerId,CompanyName FROM Customers cWHERE EXISTS(SELECT OrderID FROM Orders o WHERE o.CustomerID=c.CustomerID)这里面的EX...
分类:
数据库 时间:
2014-09-18 18:08:07
阅读次数:
213
呵呵,图片先来一发:最近懒,很懒,连我自己都觉得有点可耻了。但是实在没有什么东西啊,温水煮青蛙的什么的。吐槽完成,以上。目前完成了简单的战斗部分,AI还需要抽出来。然后突然之间想到手游的帧频是60fps/s,然后就放弃了之前比较平滑的CCMoveTo,换成了每帧去计算坐标。还增加了掉血计算与表现,与...
分类:
其他好文 时间:
2014-09-18 13:10:03
阅读次数:
221
还沉浸在2014世界杯吗? 快用程序模拟属于自己独一无二的世界杯吧!FIFA2014世界杯模拟器 你值得拥有// 类 player、 team的定义及实现, 代码放到player_team.cpp中 1 #include 2 #include 3 using namespace s...
分类:
其他好文 时间:
2014-09-17 23:03:43
阅读次数:
390
一直想看看Unity3d官方推出的UnityTestTools的测试插件,今天有空尝试了一下。一、Quick Start 1、 create a plane position which transform position is vector3(0,0,0),attach a script ...
分类:
其他好文 时间:
2014-09-17 21:48:12
阅读次数:
301
水#include #include #include #include #define LL __int64using namespace std;LL M;LL quick(LL a,LL b){ a%=M; LL ans=1; while(b){ if(b&1) ans=(ans*a)%M.....
分类:
其他好文 时间:
2014-09-17 21:40:52
阅读次数:
159
WPF/MVVM Quick Start TutorialMVVM-Sidekick VSIXPrismThe Reactive Extensions (Rx)Reactive Extensions入门
分类:
其他好文 时间:
2014-09-17 18:28:52
阅读次数:
147