1 #include 2 #include 3 4 int parallel_qsort(int * data , int start , int end, int p_count, int pid); 5 int quick_sort(int *data ,int start , int en.....
分类:
其他好文 时间:
2014-08-08 20:55:06
阅读次数:
239
CSDN送了腾讯云的测试资格,准备拿来作为cici的软件发布首页,想在上面做个demo,无奈没有设备环境,于是想要用openvz来虚拟一些vps:
第一步:选择腾讯云的os模板,centos6.3
第二步:安装openvz 安装方法参见:http://openvz.org/Quick_installation
第三步:下载os模板,创建4个vps,分别是ubutnu ce...
分类:
其他好文 时间:
2014-08-08 16:15:26
阅读次数:
251
一.我知道在你的电脑中一定已经安装好了Xcode(没有自己下载去吧),打开Xcode,开启“偏好设置”对话框(commond + ,)。假设打开之后出现的是这种一个对话框,那么直接安装commond line tools就可以:假设你是这种....说明你的OS X系统10.9以上的版本号,那么怎样安...
分类:
其他好文 时间:
2014-08-08 15:26:06
阅读次数:
205
在说之前,我还是把这个两个名词区分一下,毕竟太长,后面打起来肯定麻烦,quick-cocos2d-x就简称quick,cocos2d-x lua就姑且叫原生lua吧。
我觉得对于第一次接触这两个的小伙伴们肯定多多少少会跟我有一样的疑惑,这两个是使用两种不同的API吧。我只能说说对了一半,确实,quick有一套自己的API,但是,quick还是支持原生lua的api,就好比C和C++的关系,qui...
分类:
其他好文 时间:
2014-08-08 12:49:36
阅读次数:
254
How to setup multimedia on CentOS-5CentOS ships with basic sound support for audio content encoded with codecs for a variety of sound formats, includi...
分类:
其他好文 时间:
2014-08-08 01:37:45
阅读次数:
505
这两天终于闲了一下,就顺手又把quick捡起来又学了学,一直都觉得quick比cocos2dx那套lua绑定要方便许多,今天试了下android返回键的监听,还是挺好弄的,所以就有了这篇。
首先说明一下使用的quick版本——2.2.5。
直接上代码
function MainScene:addBackEvent()
if device.platform == "android" t...
分类:
移动开发 时间:
2014-08-07 23:22:55
阅读次数:
468
原文地址:http://infiniteloop.in/blog/quick-python-performance-optimization-part-i/
往往小的改变却能带来大的性能提升,
下面说下python中的几点性能优化。
1.使用timeit模块
2.减少函数的调用次数
3.使用xrange代替range
4.''.join()代替+,+=
5.while 1 代替 wh...
分类:
编程语言 时间:
2014-08-06 19:28:32
阅读次数:
247
#include int partition(int A[], int p, int q) { int x = A[p]; int i = p; int j; for (j=p+1; jint quick_sort(int a[], int low, int high)//一...
分类:
其他好文 时间:
2014-08-05 22:23:40
阅读次数:
289
Today, I’d like to take a quick moment to demonstrate how to make a simple file server usingRewrite, and any Servlet Container, such as Tomcat, Wildfl...
分类:
其他好文 时间:
2014-08-05 15:35:29
阅读次数:
282
本文基于Quick cocos2d x这个游戏框架,为了行文流畅,后面都简称Q2D导出自定义c++类给项目使用已经有了现成的例子了详见:http://quick.cocos.org/?p=235我们讨论的是如何导出给框架,使得我们以后每次新建项目的时候,都能使用到这个类咱也是新手,忙活了会,编译成功...
分类:
编程语言 时间:
2014-08-05 00:01:18
阅读次数:
250