最近收集了一下键盘按键对应的ASCII码:
ESC键VK_ESCAPE (27)
回车键:VK_RETURN (13)
TAB键:VK_TAB (9)
Caps Lock键:VK_CAPITAL (20)
Shift键:VK_SHIFT (16)
Ctrl键:VK_CONTROL (17)
Alt键:VK_MENU (18)
空格键:VK_SPACE...
分类:
其他好文 时间:
2014-06-05 11:37:19
阅读次数:
263
【题目】
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:
Integers in each row are sorted from left to right.
The first integer of each row is greater than the last integer of the previous ...
分类:
其他好文 时间:
2014-06-05 08:28:43
阅读次数:
321
【题目】
Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place.
【题意】
给定一个mXn的矩阵,如果其中的元素为0,则对应的行和列都用0填充。
不能申请额外的空间。
【思路】
第一行和第一列空出来标记需要置0的列和行
第一遍扫描:
扫描第一行,判断第一行是否需要清零
...
分类:
其他好文 时间:
2014-06-05 08:07:11
阅读次数:
229
public abstract class ModelsBase {
//自动从DataRow里取数据给属性赋值 public void RightDataFrom(DataRow row) { Type type =
this.GetType(); //遍历每一个属性 foreach...
分类:
其他好文 时间:
2014-06-04 20:18:20
阅读次数:
197
参考:http://imysql.cn/2008_07_10_innodb_tx_isolation_and_lock_mode本文只是对于“SELECT
... LOCK IN SHARE MODE”和“SELECT ... FORUPDATE”事务中的锁和RR隔离级别内的测试,针对于表结构、索引...
分类:
数据库 时间:
2014-05-31 13:11:15
阅读次数:
389
使用NOPI读取Excel的例子很多,读取Word的例子不多。Excel的解析方式有多中,可以使用ODBC查询,把Excel作为一个数据集对待。也可以使用文档结构模型的方式进行解析,即解析Workbook(工作簿)、Sheet、Row、Column。Word的解析比较复杂,因为Word的文档结构模型...
分类:
其他好文 时间:
2014-05-31 00:53:10
阅读次数:
1651
Given a triangle, find the minimum path sum
from top to bottom. Each step you may move to adjacent numbers on the row
below.For example, given the fol...
分类:
其他好文 时间:
2014-05-30 14:59:37
阅读次数:
241
错误提示:E: Could not get lock /var/lib/dpkg/lock -
open (11: Resource temporarily unavailable) E: Unable to lock the administration
directory (/var/lib/d...
分类:
其他好文 时间:
2014-05-30 03:01:41
阅读次数:
234
QMutex类提供了一种保护一个变量和一段代码的方法。mutex.lock()
//锁住互斥量(mutex)。如果互斥量是解锁的,那么当前线程就立即占用并锁定它。否则,当前线程就会被阻塞,知道掌握这个互斥量的线程对它解锁为止。mutex.unlock()//解锁mutex.tryLock()//尝试...
分类:
其他好文 时间:
2014-05-29 23:19:56
阅读次数:
441
參照
http://blog.csdn.net/dengroj2009/article/details/4636456
中方案二,問題解決。不過,感覺博主記錄問題方式很規範,記錄下。記錄整個筆記的流程:事件/錯誤/解決方案/步驟/原因總結
分类:
系统相关 时间:
2014-05-29 22:20:13
阅读次数:
436