selected device is not a touchscreen I understandarm交叉编译工具中的头文件库中的linux/input.h中的EV_VERSION定义为#define EV_VERSION 0x010000而linux内核include/linux/...
分类:
其他好文 时间:
2014-07-08 00:14:34
阅读次数:
200
最近在测试一个小Demo,用到很多手机功能。在这里一一贴出来,以供后期参考1、操作手机震动; Handheld.Vibrate(); //震动前自己加条件判断2、Input框 调用系统输入法:每个插件TextBox控件自带此功能,实用时开启即可,自动调用手机输入法。3、退出应用程序:if(Input...
分类:
移动开发 时间:
2014-07-07 21:58:11
阅读次数:
597
The following packages should be installed:scimscim-tables-zh (this includes Wubi input method)scim-tables-pinyin (this includes Pinyin input method)s...
分类:
系统相关 时间:
2014-06-30 13:18:56
阅读次数:
450
The following packages should be installed:python-ibusibusibus-clutteribus-gtkibus-m17n: input many non-latin charactersibus-pinyinibus-qt4ibus-tablei...
分类:
系统相关 时间:
2014-06-30 13:14:49
阅读次数:
455
Given a roman numeral, convert it to an integer.
Input is guaranteed to be within the range from 1 to 3999.
给定一个罗马数字,把它转换成一个整数。
把罗马数字字符串转换成字符数组先,如下表,每个数字仅对应一个字符,而且字符不一样。故可从头开始取值进行对应。
The R...
分类:
其他好文 时间:
2014-06-30 09:52:40
阅读次数:
251
题目:
要从5个人中选取2个人作为礼仪,其中每个人的身高范围为160-190,要求2个人的身高差值最小(如果差值相同的话,选取其中最高的两人),以升序输出两个人的身高。
Smple input:161 189 167 172 188 Sample outPut: 188 189
分析:我的理解就是先逆序排好数值, 然后逐对比较身高差值, 找出身高差值最小的然后输出
代码如下...
分类:
其他好文 时间:
2014-06-30 09:37:19
阅读次数:
258
Given an integer, convert it to a roman numeral.
Input is guaranteed to be within the range from 1 to 3999.
给定一个整数,把它转换成罗马数字。
输入可以保证在1到3999之间。
下图是转换规则。
1
2
3
4
...
分类:
其他好文 时间:
2014-06-30 09:28:05
阅读次数:
308
Easy Finding
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 15668
Accepted: 4163
Description
Given a M×N matrix A. Aij ∈ {0, 1} (0 ≤ i
Input
There ar...
分类:
其他好文 时间:
2014-06-30 08:35:45
阅读次数:
215
题目:
* 给定一个数组input[] ,如果数组长度n为奇数,
* 则将数组中最大的元素放到 output[] 数组最中间的位置,
* 如果数组长度n为偶数,
* 则将数组中最大的元素放到 output[] 数组中间两个位置偏右的那个位置上,
* 然后再按从大到小的顺序,依次在第一个位置的两边,
* 按照一左一右的顺序,依次存放剩下的数。
* 例如:
* inp...
分类:
其他好文 时间:
2014-06-30 08:34:41
阅读次数:
179
题目:
输入一串字符串,其中有普通的字符与括号组成(包括‘(’、‘)’、‘[’,']'),要求验证括号是否匹配,如果匹配则输出0、否则输出1.
Smple input:dfa(sdf)df[dfds(dfd)] Smple outPut:0
分析: 类似于括号字符匹配这类的问题, 我们可以模拟栈的操作来进行验证, 这样问题就简单了, 就是栈的操作
...
分类:
其他好文 时间:
2014-06-29 22:34:14
阅读次数:
317