本系列所有文章可以在这里查看http://blog.csdn.net/cloud_castle/article/category/2123873
接上文Qt5官方demo解析集22——Extending
QML - Object and List Property Types Example
有时我们看到某个QML类型的声明中,某些数据并没有放在属性 + :后面,它们实际上属于这个...
分类:
其他好文 时间:
2014-07-08 21:08:51
阅读次数:
279
本系列所有文章可以在这里查看http://blog.csdn.net/cloud_castle/article/category/2123873
接上文Qt5官方demo解析集25——Extending
QML - Methods Example
如果之前看过了我前面介绍粒子系统的朋友,应该对
velocity: AngleDirection {angleVariation: 3...
分类:
其他好文 时间:
2014-07-08 20:51:48
阅读次数:
243
本系列所有文章可以在这里查看http://blog.csdn.net/cloud_castle/article/category/2123873
接上文Qt5官方demo解析集24——Extending
QML - Default Property Example
这个例子主要向我们介绍了在QML类型中定义函数的方法。
person.h:
#ifndef PERSON_H
#d...
分类:
其他好文 时间:
2014-07-08 17:32:08
阅读次数:
269
If you are not satisfied with default Google map Marker (Default google marker can only be a icon, image or shape),
for example adding a border, then you should use richmarker!
http://google-maps...
分类:
其他好文 时间:
2014-07-08 17:17:18
阅读次数:
386
本系列所有文章可以在这里查看http://blog.csdn.net/cloud_castle/article/category/2123873
接上文Qt5官方demo解析集22——Extending
QML - Object and List Property Types Example
在上一个例子中,我们为BirthdayParty类创建了带有一个列表参数的属性guests...
分类:
其他好文 时间:
2014-07-08 16:47:51
阅读次数:
240
Method 1: Add one list into the other list.
For example, if list1is {22, 33, 44, 55} and list2 is {66, 77, 88, 99},then append(list1, list2)will change list1to {22, 33, 44, 55, 44, 66, 77, 88, 99}.
...
分类:
其他好文 时间:
2014-07-08 16:18:22
阅读次数:
196
Unique Binary Search Trees
My Submissions
Given n, how many structurally unique BST's (binary search trees) that store values 1...n?
For example,
Given n = 3, there are a total of 5 uniqu...
分类:
其他好文 时间:
2014-07-08 14:18:39
阅读次数:
159
Method 4: Gets the value of element number i
For example, if list is {22, 33, 44, 55, 66, 77, 88, 99}, then get(list, 2) will return 44.
Solution 1:
static int get(Node list, int i) {
if (i < 0) ...
分类:
其他好文 时间:
2014-07-08 14:07:52
阅读次数:
262
题目
Given a linked list, swap every two adjacent nodes and return its head.
For example,
Given 1->2->3->4, you should return the list as 2->1->4->3.
Your algorithm should use only constant spac...
分类:
其他好文 时间:
2014-07-08 13:46:26
阅读次数:
205
之前在进行cocos2dx开发时,已经详细介绍了如何将win32的c++代码移植到Android平台,当再次回顾时,发现一些基础的东西理解并不是很彻底,今天使用Android NDK提供的一个例子做一个简单的移植。
1.创建Android项目
创建一个Android项目 , 包名是com.example.hellojni,创建一个Activity作为程序进入的Acitivity,命名为Hell...
分类:
移动开发 时间:
2014-07-08 13:41:10
阅读次数:
251