2011年10月21日

C++中生成任意范围内随机数的方法

摘要: //该宏定义需要放在所有头文件的前面,否则可能编译通不过#define _CRT_RAND_S#include #includeusing namespace std;//产生随机数,其中范围为min~maxun... 阅读全文

posted @ 2011-10-21 20:34 gapofsky 阅读(234) 评论(0) 推荐(0)

在case语句中定义变量的问题

摘要: 今天在实验室,同学问了一个在case中定义变量的问题,例如:switch(n){ case 1:int i=0;break; case 2:....;break; case 3:....;bre... 阅读全文

posted @ 2011-10-21 20:28 gapofsky 阅读(216) 评论(0) 推荐(0)

libnids libpcap libnet 安装中的错误解决方案(mark)

摘要: 安装libpcap出现:1:error: Your operating system's lex is insufficient to compile libpcap. ex is a lex replaceme... 阅读全文

posted @ 2011-10-21 18:40 gapofsky 阅读(403) 评论(0) 推荐(0)

导航