在梳理完quick-cocos2d-x框架的各个目录后,我们开始我们的实例教程,在helloworld后面,加上一张图片,lua编辑器,我用的lua editor,还不错。
我们首先还是参照教程,创建一个game01。命令:create_project -p com.cocos2dlua.game01 -r landscape,这次命令,我加了一个-r,设置为横向的屏幕用quickplaye...
分类:
其他好文 时间:
2014-06-02 18:56:19
阅读次数:
353
parse_url()函数是将输入的URL结构分解成几个部分来将其转变为一个关联数组组成URL的几个基本部分为:scheme(协议名),host(主机名),port(端口号),path(文件路径),query(查询参数),user(用户名),pass(密码)如:http://www.example....
分类:
Web程序 时间:
2014-06-02 12:47:09
阅读次数:
300
【题目】
Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2.
For example,
Given:
s1 = "aabcc",
s2 = "dbbca",
When s3 = "aadbbcbcac", return true.
When s3 = "aadbbbaccc", return false.
【题意】
给定字符串s1,s2,s3, 判断s3是不是s1和s2中的字交叉组合...
分类:
其他好文 时间:
2014-06-02 10:58:24
阅读次数:
211
【题目】
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).
For example, this binary tree is symmetric:
1
/ 2 2
/ \ / 3 4 4 3
But the following is not:
1
/ 2 2
\ 3 3
No...
分类:
其他好文 时间:
2014-06-02 10:56:14
阅读次数:
237
@echo offif not exist Main.cpp echo
%cd%\Main.cpp不存在>>log.txtif not exist Shader.fsh echo
%cd%\Shader.fsh不存在>>log.txtif not exist Shader.vsh echo %cd%...
分类:
其他好文 时间:
2014-06-02 08:49:04
阅读次数:
234
1、在Qt中使用 WebKit 浏览器核心使用 QtWebKit
需要在工程文件(*.pro)中加入:1. QT+=webkit 2.
QT+=network2、QtWebKit的flash支持QtWebKit到固定的路径(NPAPI插件厂商的安装路径)下载入flash控件,如果需要flash支持,...
分类:
Web程序 时间:
2014-06-02 08:06:42
阅读次数:
356
qmake 之 CONFIG 与 QT 乱谈看qtcn论坛中经常有人忘记 QT+=network
等语句。随便写写吧,或许对他人有帮助。写来写去,发现越写越乱,就这样吧,反正主要的内容很简单。 dbzhang800
20101116从哪儿开始呢?不妨先看个例子吧:#include #include ...
分类:
其他好文 时间:
2014-06-02 06:19:08
阅读次数:
247
用Qt5实现的简单程序,获取本机网络信息。建立工程后,在.pro里加入:QT +=
network用Qt设计器创建界面:在widget.h中声明getHostInformation类:public: int
getHostInformation();声明槽函数:public slo...
分类:
其他好文 时间:
2014-06-02 05:43:06
阅读次数:
221
Reverse Words in a String
Total Accepted: 15012 Total
Submissions: 108513My Submissions
Given an input string, reverse the string word by word.
For example,
Given s = "the sky is blue",...
分类:
其他好文 时间:
2014-06-02 05:34:14
阅读次数:
214
vsiaul studio2010 qt4.8.0 qwt-6.1.0...
分类:
其他好文 时间:
2014-06-01 17:24:29
阅读次数:
375