android.mk文件的作用:编译需要的cpp文件,生成.so动态库,供android端调用。先上一个android.mk文件:第一次创建项目,在Android平台编译时,都需要通过android.mk文件编译整个cocos2dx的库(第一次编译我们需要等待很长的时间.....)。首先知道$(ca...
分类:
移动开发 时间:
2014-07-02 00:15:06
阅读次数:
332
Qt的webview设置默认为宋体, 否则webkit的默认字体对中文和符号支持很差QWebView::settings()->setFontFamily(QWebSettings::StandardFont, QString::fromLocal8Bit("宋体"));css 样式的特性, 备用字...
分类:
其他好文 时间:
2014-07-01 23:49:03
阅读次数:
328
Qt连接数据库的方式很多,这里说明一种最常用也是最实用的方式,因为这种方式在Windows上开发程序使用起来非常方便,并且也是远程连接数据库所需要用到的方式。 前提工作: 在Win7下安装了SQL Server 2008,并在SQL Server中创建了数据库MyDB。 Qt通过ODBC连接SQL ...
分类:
数据库 时间:
2014-07-01 23:41:47
阅读次数:
348
RadioGroup 有时候比較实用.主要特征是给用户提供多选一机制。MainActivity.javapackage com.example.lesson16_radio;import android.app.Activity;import android.os.Bundle;import and...
分类:
移动开发 时间:
2014-07-01 21:40:58
阅读次数:
283
题目:Remove Nth Node From End of ListGiven a linked list, remove thenthnode from the end of list and return its head.For example, Given linked list: 1.....
分类:
其他好文 时间:
2014-07-01 20:34:50
阅读次数:
232
Swift’s API includes many functions and instance methods that reflect its functional programming heritage. A prime example is calledreduce.You can red...
分类:
移动开发 时间:
2014-07-01 00:27:22
阅读次数:
329
最小的k个数 代码(C)本文地址: http://blog.csdn.net/caroline_wendy题目: 输入n个整数, 找出其中的最小k个数.使用快速排序(Quick Sort)的方法求解, 把索引值(index)指向前k个数.代码:/*
* main.cpp
*
* Created on: 2014.6.12
* Author: Spike
*/
/*eclip...
分类:
其他好文 时间:
2014-06-30 18:16:34
阅读次数:
204
题目
Given a binary tree, flatten it to a linked list in-place.
For example,
Given
1
/ 2 5
/ \ 3 4 6
The flattened tree should look lik...
分类:
其他好文 时间:
2014-06-30 18:13:31
阅读次数:
229
Qt学习笔记4-Widget布局管理以《C++ GUI Programming with Qt 4, Second Edition》为参考实例:查找对话框包含三个文件,finddialog.h,finddialog.cpp及main.cpp。//finddialog.h代码#ifndef FINDD...
分类:
其他好文 时间:
2014-06-30 15:06:41
阅读次数:
328
C++ GUI Qt4学习笔记08qtc++signal图形引擎文档[html]view plaincopy本章介绍Qt的二维图形引擎,Qt的二维图形引擎是基于QPainter类的。QPainter既可以绘制几何图形(点、线、矩形等),也可以绘制像素映射、图像和文字。此外QPainter还支持一些高...
分类:
编程语言 时间:
2014-06-30 15:01:37
阅读次数:
240