1,配置内核,使内核启动时加载logo,在源代码的主目录下make menuconfig
Device Drivers --->
Graphics support --->
选上 并 进入 Bootup logo -->
选上 Standard 224-color Linux logo...
分类:
系统相关 时间:
2015-08-17 19:43:05
阅读次数:
182
最近开发中要用到STL,然后自己查看了一些资料,并写了一些代码。在使用中,想起了如果是map嵌套,该如何应用呢?下面是我的coding内容: 对于传统的map,我们只需要: #include #include int main() { map scores; scores.insert(make_p...
分类:
编程语言 时间:
2015-08-17 19:10:02
阅读次数:
209
Be sure your pc has a web cam. Of all notebooks, the web cam can look just like a little pit in the top edge of the display. Most notebook computers m...
分类:
其他好文 时间:
2015-08-17 11:38:21
阅读次数:
286
【自动绑定】
参考:http://my.oschina.net/skyhacker2/blog/298397
主要是通过引擎自带的tools/tolua,主要步骤如下:
1.编写好要导出的c++类,如果是libcocos2d里添加,需要添加导出标记:class CC_DLL Test
2.到tolua目录根据README.mdown配置好环境:
* Make sure that yo...
分类:
其他好文 时间:
2015-08-16 19:54:26
阅读次数:
395
给出n个数,n
卡内存的神题,用数组存下来刚好1mb,再加上运行时消耗内存,马上爆。因此我们用优先队列存储一半的数。网上的某些代码,用priority_queue全爆内存。我存的125000长度的数组,加上STL的make_heap()
#include
#include
using namespace std;
int a[125010];
int main()
{
in...
分类:
其他好文 时间:
2015-08-16 15:16:36
阅读次数:
126
默认情况下,无法建立多层目录
[huage@localhost ~]$ mkdir -p 3/4/5
加了-p参数后可以直接建立多层目录
-p, --parents
no error if existing, make parent directories as needed...
分类:
系统相关 时间:
2015-08-15 20:07:11
阅读次数:
237
Problem DescriptionSoda has a bipartite graph withnvertices andmundirected edges. Now he wants to make the graph become a complete bipartite graph wit...
分类:
其他好文 时间:
2015-08-15 19:47:36
阅读次数:
212
1.嵌入式linux内核的制作(这里使用的国嵌提供的linux-ok6410内核,附带内核配置文件config-file)a.进入内核目录清除原有配置和中间文件:make cleanb.配置内核:arm平台:make menuconfig ARCH=armc.编译内核:make uImage ARC...
分类:
系统相关 时间:
2015-08-15 18:08:33
阅读次数:
139
参考九野巨巨的博客。查询一个子树内的信息,可以通过DFS序转成线形的,从而用数据结构来维护。 1 #include 2 #include 3 #include 4 #include 5 #include 6 #define MP make_pair 7 #define FI ...
分类:
编程语言 时间:
2015-08-15 11:50:01
阅读次数:
149
1.下载源代码(简单不讲述)2.安装pcre,pcre是一个轻量级的正则表达式函数库,nginx的HTTPRewrite模块会用到。wgetftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.34.tar.gz
tar-zxvfpcre-8.34.tar.gz
cdpcre-8.34
./configure
make&&makeinstall3.安装n..
分类:
编程语言 时间:
2015-08-15 06:47:54
阅读次数:
5865