Reference:http://blog.csdn.net/jarjingx/article/details/8521690其中伍昱的ppt不错。2SAT最裸的模型:一国有n个党派,每个党派在议会中都有2个代表,现要组建和平委员会,要从每个党派在议会的代表中选出1人,一共n人组成和平委员会。已知有...
分类:
其他好文 时间:
2014-10-28 21:23:53
阅读次数:
282
??
You can use the
as operator to perform certain types of conversions between compatible reference types or
nullable types.
The as operator is like a cast operation. However, if the conversion i...
The ref keyword causes an argument to be passed by reference, not by value. The effect of passing by reference is that any
change to the parameter in the called method is reflected in the calling me...
??
A variable of a
reference type does not contain its data directly; it contains a reference to its data.
When you pass a reference-type parameter by value, it is possible to change the data poin...
运行 #make menuconfig1 HOSTLD scripts/kconfig/mconf2 scripts/kconfig/mconf.o: In function `main':3 mconf.c:(.text.startup+0x6a): undefined reference ...
分类:
其他好文 时间:
2014-10-28 17:35:01
阅读次数:
229
原文:https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/ls.1.html-a 列出目录下的所有文件,包括以 . 开头的隐含文件。-b 把文件名中不可输出的字符用反斜杠加字符编号(...
分类:
系统相关 时间:
2014-10-28 15:05:44
阅读次数:
317
1. by zero发生被0除错误2. Null object reference空对象引用3. Array boundary exceeded数组越界4. Enumerated value is out of range for function枚举值超出函数的范围5. Negative valu...
分类:
其他好文 时间:
2014-10-28 11:52:20
阅读次数:
582
这是使用libdlna0.2.4与ffmpeg2.4.2搭配遇到的问题
解决方法是使用ffmpeg2.2.9版本(更久的版本没测试过),
或者坚持要使用ffmpeg2.4.2版本的话,只需将
…/ffmpeg-2.4.2/libavformat/version.h文件中一点点内容进行修改:...
分类:
其他好文 时间:
2014-10-27 11:01:02
阅读次数:
375
今天发现自己连Bundle类都没有搞清楚,于是花时间研究了一下。依据google官方的文档(http://developer.android.com/reference/android/os/Bundle.html)Bundle类是一个key-value对,“A mapping from Strin...
分类:
移动开发 时间:
2014-10-25 15:40:20
阅读次数:
167