Sending is time spent uploading the data/request to the server. It occurs between blocking and waiting. For example, if I post back an ASPX page this ...
分类:
其他好文 时间:
2014-08-27 10:33:57
阅读次数:
285
这两天工作搞了下QT,主要是为了实现一个功能,跨平台用的。功能是这样的,根据一个页面表单进行选择元素最后生成一个xml文件发送到手机上,因为之前实现了xmpp发送文件的作用,所以现在只需要根据文件生成一个xml文件。中途还算顺利,两天搞定!
最终创建xml的代码就是这一段:
void hellodialog::create_Xml()
{
QString fileNa...
分类:
其他好文 时间:
2014-08-27 09:24:53
阅读次数:
231
Given a collection of numbers that might contain duplicates, return all possible unique permutations.For example,[1,1,2]have the following unique perm...
分类:
其他好文 时间:
2014-08-27 01:37:16
阅读次数:
242
在swift中元组类似与C语言中的结构体,在一个元组中可以包含多种数据类型,在swift中主要用于函数中做为函数返回值Example:元组定义方式一:let stu: (String,Int,Double,Int) = ("qj",25,175.0,80);方式二:let stu1 = (name:...
分类:
编程语言 时间:
2014-08-27 00:11:16
阅读次数:
194
LeetCode: Flatten Binary Tree to Linked ListGiven a binary tree, flatten it to a linked list in-place. For example,Given 1 / \ 2 ...
分类:
其他好文 时间:
2014-08-26 22:57:46
阅读次数:
220
Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array [?2,1,?3,4,?1,2,1...
分类:
其他好文 时间:
2014-08-26 22:44:46
阅读次数:
212
如果我们程序需要翻译成另外一种语言,那么Qt Linguist 和Qt的翻译工具已经为我们解决这个问题,它提供了一套解决方案,它们提供了如何组织和处理翻译后字符串的方法。 为了准备进行代码翻译,需要使用QObject::...
分类:
其他好文 时间:
2014-08-26 21:35:26
阅读次数:
338
quick-cocos2dx是在原生态cocos2d-x的基础上进行lua形式的封装,而其窗口则采用的是QT形式。
在使用quick-cocos2dx之前请先下载:quick-cocos2dx包, 开发环境 sublime2.0 或sublime3.0
(1):quick-cocos2dx2.2.5 http://cn.cocos2d-x.org/download/
(2):subl...
分类:
其他好文 时间:
2014-08-26 21:28:06
阅读次数:
287
CCLuaObjcBridge是cocos2d-x系列引擎与Objective-C进行交互的“桥梁”,老廖的quick-cocos2d-x在其framework进行了简单了封装,封装到了luaoc类中,大体能够看成:luaoc.callStaticMethod = CCLuaObjcBridge.c...
分类:
其他好文 时间:
2014-08-26 21:12:26
阅读次数:
181
首先,要向窗体添加一个TreeView控件;然后再添加一个ContextMenuStrip控件;接下就要给TreeView添加一个MouseDown事件,代码如下:Example 1 private void SchemaTreeView_MouseDown(object sender...