码迷,mamicode.com
首页 >  
搜索关键字:qt quick example    ( 27971个结果)
Binary Tree Level Order Traversal java实现
Given a binary tree, return thelevel ordertraversal of its nodes' values. (ie, from left to right, level by level).For example:Given binary tree{3,9,2...
分类:编程语言   时间:2014-07-12 13:13:24    阅读次数:195
Generate Parentheses java实现
Givennpairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, givenn= 3, a solution set is:"((()))...
分类:编程语言   时间:2014-07-12 13:02:18    阅读次数:248
Permutations java实现
Given a collection of numbers, return all possible permutations.For example,[1,2,3]have the following permutations:[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,...
分类:编程语言   时间:2014-07-12 12:56:52    阅读次数:206
Pascal's Triangle
GivennumRows, generate the firstnumRowsof Pascal's triangle.For example, givennumRows= 5,Return[ [1], [1,1], [1,2,1], [1,3,3,1], [1,4,6,4,1]...
分类:其他好文   时间:2014-07-12 00:17:08    阅读次数:226
Android的学习之路(四)项目中清单文件的学习和android中常用的显示单位
1.所谓的清单文件就是项目中的AndroidManifest.xml文件,这个文件可是有大用处的,比如:app的名字,图标,app支持的版本app的包名等等。下面我就介绍下这个清单文件的各个参数的作用。<manifest xmlns:android="http://schemas.android.com/apk/res/android"命名空间 package="com.example.hel...
分类:移动开发   时间:2014-07-09 11:13:11    阅读次数:192
【LeetCode】Path Sum
题目 Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum. For example: Given the below binary tree ...
分类:其他好文   时间:2014-07-09 10:32:42    阅读次数:151
Qt中用正则表达式来判断Text的语种,主要通过判断unicode的编码范围
QString MainWindow::ParseLanguage(QString Text) {     if(Text.length()<=0)     {         return "";     }     QString sRegNum = "[0-9]+";     QString sRegEn = "[a-zA-Z]+";     QString sRegCn =...
分类:其他好文   时间:2014-07-09 10:14:38    阅读次数:301
Java语言的基础知识
第三章1、在java源文件编辑器中,选择某个成员变量,然后按住shift+alt+j,Eclipse会自动添加JavaDoc文档注释结构,如果选择的是方法,还会自动添加参数名称。2、Java语言规定标示符是由任意的字母、下划线、美元符号和数字组成,并且第一个字符不能使数字,标示符不能使java中..
分类:编程语言   时间:2014-07-09 08:50:59    阅读次数:212
自定义ProgressDialog
最近工作中需要用到progressDialog,可是系统自带的黑色progressDialog又是其丑无比,无奈只能自己自定义了,在网上查看别人的例子,并自己整理了一份Demo:先上图:MyProgressDialog:packagecom.example.myprogressdialog_zzw;importandroid.app.Dialog;importandroid.conten..
分类:其他好文   时间:2014-07-09 08:40:10    阅读次数:152
在脚本中生成配置文件
其实是个输入输出重定向的简单应用,cat>>/tmp/example.conf<<EOF >Inputathere >Youcanentermultiplelines >AndscriptisendofEOFlikebelow >EOF输出重定向到某配置文件,配置文件的内容来自输入重定向<<表示此处即文件,而非类似于>>的追..
分类:其他好文   时间:2014-07-09 08:20:57    阅读次数:188
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!