做Linux方面也有三个多月了,对代码中的有些结构一直不是非常明确,比方platform_device与platform_driver一直分不清关系。在网上搜了下,做个总结。两者的工作顺序是先定义platform_device -> 注冊 platform_device->,再定义 platfor....
分类:
其他好文 时间:
2014-07-01 18:51:30
阅读次数:
247
原理:最外层放水平平铺的背景,第二层放左边,第三层放右边,注意这个做法背景图不能透明结构: 样式:.module-title { height:33px; background: url(../images/more-title.png) 0 -33px repeat-x; text-inden.....
分类:
Web程序 时间:
2014-07-01 18:23:28
阅读次数:
235
As long as you know, the purpose of the bag that you want to buy, everything goes, and you can get a good deal. For more information, click on this li...
分类:
其他好文 时间:
2014-07-01 18:13:09
阅读次数:
210
DFU Class RequestsGet StatusThe Host employs the DFU_GETSTATUS request to facilitate synchronization with the device. This status gives information on...
分类:
其他好文 时间:
2014-07-01 17:35:20
阅读次数:
460
structDemo1# include # include enum EType{ One = 1,Tow,Three };struct S1{ int id ; char name [111]; long version ;};int main(void){ ET...
分类:
其他好文 时间:
2014-07-01 17:16:06
阅读次数:
151
CountDownLatch,api 文档:http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/CountDownLatch.html A synchronization aid that allows one or more ...
分类:
编程语言 时间:
2014-07-01 13:56:08
阅读次数:
427
在学习数据库的时候选择的是一本翻译书,有些概念没有搞清楚,现在总结一下。内联接语句select * FROM table1 one INNER JOIN table2 two ON one.table1_id=two.table2_id;返回的结果是两个表中都存在的匹配数据左联接语句SELECT *...
分类:
数据库 时间:
2014-07-01 11:54:23
阅读次数:
251
开始所有的灯是灭的,不过我们只关心最后一个灯。在第i次走动时,只有编号为i的倍数的灯的状态才会改变。也就是说n有偶数个约数的时候,最后一个灯的状态不会改变,也就是灭的。n有奇数个约数的时候也就是n为完全平方数的时候,最后一个灯会是亮的。最后抽象出来,就是判断输入的数是否为完全平方数。Light, m...
分类:
其他好文 时间:
2014-07-01 10:19:44
阅读次数:
202
题目
Given an array of integers, every element appears twice except for one. Find that single one.
Note:
Your algorithm should have a linear runtime complexity. Could you implement it witho...
分类:
其他好文 时间:
2014-07-01 06:24:42
阅读次数:
204
题目
Given an array of integers, every element appears three times except for one. Find that single one.
Note:
Your algorithm should have a linear runtime complexity. Could you implement it...
分类:
其他好文 时间:
2014-07-01 06:23:24
阅读次数:
334