举一个容易犯错的例子class Date{private: int month; int day; int year;public:Date(int month,int day,int year){ this->month = month; ... }}//wrong exampleDa...
分类:
编程语言 时间:
2014-07-12 00:13:54
阅读次数:
235
在Make.config 文件里将DEBUG=1的注释去掉,再make。可以用IDE如eclipse来import makefile工程。必要时按照IDE的提示将源文件cpp和对应的bin文件对应。
分类:
其他好文 时间:
2014-07-11 23:01:32
阅读次数:
1192
Now the security has a trend to become more and more important in our daily work, hence I did some researches on some of the topics, and hope to do mo...
分类:
其他好文 时间:
2014-07-11 19:20:52
阅读次数:
283
使用的是一款Broadcom的芯片,现在上面运行wifidog实现认证上网的功能。由于不是openwrt平台,所以就没了make menuconfig 勾选就能自动编译到版本中的。所以想使用交叉编译的方法将wifidog移植到该平台上。下面写下步骤吧,不是很复杂,但是开始也破费周折。下载源码到htt...
分类:
其他好文 时间:
2014-07-11 18:33:36
阅读次数:
177
最近编译 Linux Kernel 被 header 所在的文件骗了,使用命令如下
cd /usr/src/linux-headers-3.11.0-24-generic/
make menuconfig
make
make menuconfig都还是正常
make的时候就缺很多文件,headers 文件夹下面缺很多 src文件
后来经过同事指点,使用了下面的步骤,成功了
sud...
分类:
系统相关 时间:
2014-07-11 08:08:50
阅读次数:
448
在运行项目的时候,eclipse弹出提示框“Could not open Selected VM debug port (8700). Make sure you do not have another instance of DDMS or of the eclipse plugin running. If it's being used by something else, choose a new port number in the preferences.”
在终端输入:netstat -ano ...
分类:
其他好文 时间:
2014-07-10 23:03:07
阅读次数:
432
Coin Change
Suppose there are 5 types of coins: 50-cent, 25-cent, 10-cent, 5-cent, and 1-cent. We want to make changes with these coins for a given amount of money.
For example, if ...
分类:
其他好文 时间:
2014-07-10 21:12:39
阅读次数:
158
Problem Description
The God of sheep decides to pixelate some pictures (i.e., change them into pictures with mosaic). Here's how he is gonna make it: for each picture, he divides the picture into n x...
分类:
其他好文 时间:
2014-07-09 12:14:13
阅读次数:
433
最近工作中,发现了一个bug,是和ListView Adapter有关的。产生了FC,描述信息大约是
"The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not modified from a b...
分类:
其他好文 时间:
2014-07-08 20:09:41
阅读次数:
199
一:安装readlineOS的安装光盘里提供了readline包.[root@db11g~]#rpm-ivhreadline*libtermcap-devel*二:安装rlwrap[root@db11g~]#tar-zxvfrlwrap-0.41.tar.gz
[root@db11g~]#cdrlwrap-0.41
[root@db11grlwrap-0.30]#./configure
[root@db11grlwrap-0.30]#make
[root@db11grlwrap..
分类:
其他好文 时间:
2014-07-08 09:34:03
阅读次数:
232