上一页 1 2 3 4 5 6 7 8 ··· 12 下一页
摘要: stat函数讲解表头文件: #include #include 定义函数: int stat(const char *file_name, struct stat *buf);函数说明: 通过文件名filename获取文件信息,并保存在buf所指的结构体stat中返回值: 执行成功则返回0,失败返... 阅读全文
posted @ 2015-07-27 10:12 matthew2015 阅读(10931) 评论(0) 推荐(0)
摘要: _stat函数的功能_stat函数用来获取指定路径的文件或者文件夹的信息。函数声明int _stat( const char *path, struct _stat *buffer );参数:path——文件或者文件夹的路径buffer——获取的信息保存在内存中返回值:正确——返回0错误——... 阅读全文
posted @ 2015-07-27 10:07 matthew2015 阅读(6635) 评论(0) 推荐(0)
摘要: dirent.h是gcc下的一个头文件,在windows中是没有的。这个文件中封装了几个对目录进行操作函数:static DIR *opendir (const char *dirname);static struct dirent *readdir (DIR *dirp);static int c... 阅读全文
posted @ 2015-07-25 16:18 matthew2015 阅读(1142) 评论(0) 推荐(0)
摘要: WireShark过滤语法1.过滤IP,如来源IP或者目标IP等于某个IP例子:ip.src eq 192.168.1.107 or ip.dst eq 192.168.1.107或者ip.addr eq192.168.1.107 // 都能显示来源IP和目标IP2.过滤端 口例子:tcp.port... 阅读全文
posted @ 2015-07-25 14:54 matthew2015 阅读(327) 评论(0) 推荐(0)
摘要: 通过WIN32宏进行判断window下mkdir函数#includeint _mkdir( const char *dirname );linux下mkdir函数mode_t参数详解#include int mkdir(const char *path,mode_t mode);参数:path是目录... 阅读全文
posted @ 2015-07-25 10:05 matthew2015 阅读(4875) 评论(0) 推荐(0)
摘要: 【下载】【编译动态库】【使用动态库】 阅读全文
posted @ 2015-07-24 10:26 matthew2015 阅读(355) 评论(0) 推荐(0)
摘要: 【下载】一、下载 xml 软件包:tinyxml_2_6_2.zipTinyxml(轻量级 c++)下载地址:http://sourceforge.net/projects/tinyxml/?source=dlpTinyxml 压缩包里面其实有用的只有几个文件:tinystr.cpp tinystr... 阅读全文
posted @ 2015-07-23 11:55 matthew2015 阅读(2760) 评论(0) 推荐(0)
摘要: 众所周知, Linux 动态库的默认搜索路径是 /lib 和 /usr/lib 。动态库被创建后,一般都复制到这两个目录中。当程序执行时需要某动态库, 并且该动态库还未加载到内存中,则系统会自动到这两个默认搜索路径中去查找相应的动态库文件,然后加载该文件到内存中,这样程序就可以使用该动态库中的函 数... 阅读全文
posted @ 2015-07-23 08:55 matthew2015 阅读(5509) 评论(0) 推荐(0)
摘要: 上一篇boost在windows可以正常的使用了,但是在linux下不行。【尝试一:使用和windows同一套代码编译,编译时报错】我是在Ubuntu使用共享文件夹的方式和windows使用的同一套代码,但是按照他们提示的方式编译的时候总是报错。安装后,不能使用。【尝试二:从官网下载boost_1_... 阅读全文
posted @ 2015-07-20 17:42 matthew2015 阅读(602) 评论(0) 推荐(0)
摘要: 因为跨平台的原因,现在要使用到boost库,boost库非常大,现在处于摸索阶段。首先来说boost库在window下的安装和使用。一、下载首先从boost官方主页http://www.boost.org/下载最新版boost安装包,或者使用Subversion获取最新版本,地址是:http://s... 阅读全文
posted @ 2015-07-20 16:58 matthew2015 阅读(6132) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 12 下一页