//创建一个窗口const int WM_CREATE = 0x01;//当一个窗口被破坏时发送const int WM_DESTROY = 0x02;//移动一个窗口const int WM_MOVE = 0x03;//改变一个窗口的大小const int WM_SIZE = 0x05;//一个窗...
分类:
其他好文 时间:
2014-12-11 15:45:37
阅读次数:
225
实现的方法有很多种,按步骤来看适合哪一种,网上说什么接采集卡,其实就是把AV转成UVC,现在市面上很多摄像头直接就已经是UVC的了,在windows上面即插即用。安卓也是Linux,这个就好办了。1.首先下载个安卓USB检测程序,插入UVC摄像头,在程序中检测看是在/dev/video中新增了节点,...
分类:
移动开发 时间:
2014-12-11 10:04:59
阅读次数:
226
https://ffmpeg.org/pipermail/libav-user/2012-December/003257.htmlIgetadoublefreeorcorruptionproblem,shouldreallydoabug
reportbutdon‘thavetimetodeciphertheFFmpegbugreportingpage.
I‘llpostithereincaseanyoneisinterested,feelfreetoignore.
WhenusingcustomIOforr..
分类:
其他好文 时间:
2014-12-10 14:29:28
阅读次数:
188
Unique PathsA robot is located at the top-left corner of amxngrid (marked 'Start' in the diagram below).The robot can only move either down or right a...
分类:
其他好文 时间:
2014-12-10 14:01:54
阅读次数:
131
我一向赞同一个理念: 用代码实现简单逻辑是不需要注释的, 因此我也就不写注释了, 直接上代码:#include #include #include inline int Parent (const int i){ return std::move( i % 2 ? (i - 1)...
分类:
编程语言 时间:
2014-12-10 07:04:13
阅读次数:
221
题目描述
Problem D: Knight's Trip
In chess, each move of a knight consists of moving by two squares horizontally and one square vertically, or by one square horizontally and two squares vertically....
分类:
其他好文 时间:
2014-12-09 14:03:08
阅读次数:
617
1.定义在不改变代码行为情况下改善代码设计;2.好处1.改善设计;2.让软件更加容易理解;3.可以协助寻找bugs;4.可以提升开发速度;3.使用 3.1结构重构(改名字) 右键类文件,Refactor->Rename 3.2移动(移动到另外一个包) Refactor->Move 3.3修改方法的名...
分类:
编程语言 时间:
2014-12-08 20:54:39
阅读次数:
234
【题目】
A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).
The robot can only move either down or right at any point in time. The robot is trying to ...
分类:
其他好文 时间:
2014-12-08 17:45:44
阅读次数:
213
关于触摸滑动的网上有比较多的插件,我找了一个比较好用的插件,给大家分享下。http://stephband.info/jquery.event.swipe/通过引入两个文件就可以在手机web页面上实现触摸滑动操作了(文件在github里面,jquery.event.move.js和jQuery.ev...
分类:
移动开发 时间:
2014-12-08 17:23:08
阅读次数:
189
汉诺塔问题是一个纯递归问题,应该是比较简单的搞定n个盘子时只要搞定n-1个盘子就ok了,先将n-1个盘子经过左边那个盘子放到中间那个盘子,在把第n个盘子放过去,最后把n-1个盘子放在最左边的那个就ok了。#includevoid move(char A,char C){ printf("%c-...
分类:
其他好文 时间:
2014-12-08 00:31:23
阅读次数:
210