Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number.An example is the root-to-leaf path 1->2->3 which...
分类:
其他好文 时间:
2014-07-30 11:30:33
阅读次数:
247
通过手写qt代码来认识qt程序的构成,以及特性。设计一个查找对话框。下面是设计过程
1 新建一个empty qt project
2 配置pro文件
HEADERS += Find.h
QT += widgets
SOURCES += Find.cpp main.cpp
3 编写对话框的类
代码如下:
//Find.h
#ifndef FIND_H...
分类:
其他好文 时间:
2014-07-30 10:08:33
阅读次数:
298
可运行与Mac上的 TCP协议的 BSD Socket 代码
记录下,以便以后用到...
分类:
其他好文 时间:
2014-07-30 10:06:23
阅读次数:
258
题目:Given two integers n and k, return all possible combinations of k numbers out of 1 ... n.For example,If n = 4 and k = 2, a solution is:[ [2,4], ...
分类:
编程语言 时间:
2014-07-30 09:58:03
阅读次数:
218
题目:Given a binary tree, return the inorder traversal of its nodes' values.For example:Given binary tree {1,#,2,3}, 1 \ 2 / 3return [1,3...
分类:
编程语言 时间:
2014-07-30 09:54:33
阅读次数:
195
题目:Given a binary tree, return the preorder traversal of its nodes' values.For example:Given binary tree {1,#,2,3}, 1 \ 2 / 3return [1,...
分类:
编程语言 时间:
2014-07-30 09:49:43
阅读次数:
177
题目: 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...
分类:
编程语言 时间:
2014-07-30 05:34:43
阅读次数:
319
百度地图照着百度的教程做的总是出现报错 请帮我看看错误在那2013-12-13 15:16168海军|分类:百度地图|浏览1252次java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.map/c...
分类:
移动开发 时间:
2014-07-30 03:18:22
阅读次数:
338
Qt 5.0中添加了对于retina显示的基本支持。即将到来的Qt 5.1中提供了新的API和缺陷修复,对于这一问题进行了改进。Qt 4.8也获得了良好的支持,我们反向移植了一些Qt 5的补丁。 尽管这些实现的努力和Mac以及iOS程序...
分类:
移动开发 时间:
2014-07-30 01:11:53
阅读次数:
571
NSUserDefaults API中英文文档简介及使用
Overview
The NSUserDefaults class provides a programmatic interface for interacting with the defaults system. The defaults system allows an application to customize its behavior to match a user’s preferences. For example, y...