上一页 1 ··· 42 43 44 45 46 47 48 49 50 ··· 58 下一页
摘要: http://m.blog.csdn.net/article/details?id=42041329 MD5算法常常被用来验证网络文件传输的完整性,防止文件被人篡改。MD5全称是报文摘要算法(Message-Digest Algorithm 5),此算法对任意长度的信息逐位进行计算,产生一个二进制长 阅读全文
posted @ 2016-08-15 10:50 PKICA 阅读(761) 评论(0) 推荐(0)
摘要: 本文出自 “Mr_Computer” 博客,请务必保留此出处 Bash Shell有个extglob选项,开启之后Shell可以另外识别出5个模式匹配操作符,能使文件匹配更加方便。开启方法很简单,使用shopt命令:shopt -s extglob 关闭,,使用shopt命令:shopt -u ex 阅读全文
posted @ 2016-08-12 07:26 PKICA 阅读(789) 评论(0) 推荐(0)
摘要: 综述 MD5的全称是message-digest algorithm 5(信息-摘要算法),在90年代初由mit laboratory for computer science和rsa data security inc的ronald l. rivest开发出来,经md2、md3和md4发展而来。它 阅读全文
posted @ 2016-08-10 22:22 PKICA 阅读(652) 评论(0) 推荐(0)
摘要: 原文网址 1、查看数据print variable 查看变量print *array@len 查看数组(array是数组指针,len是需要数据长度)可以通过添加参数来设置输出格式:/x 按十六进制格式显示变量。/d 按十进制格式显示变量。/u 按十六进制格式显示无符号整型。/o 按八进制格式显示变量 阅读全文
posted @ 2016-08-07 15:27 PKICA 阅读(365) 评论(0) 推荐(0)
摘要: 加入你正在使用GDB7.0以上版本的调试器并且运行在支持反向调试的平台,你就可以用以下几条命令来调试程序: reverse-continue 反向运行程序知道遇到一个能使程序中断的事件(比如断点,观察点,异常)。 reverse-step 反向运行程序到上一次被执行的源代码行。 reverse-st 阅读全文
posted @ 2016-08-07 13:00 PKICA 阅读(10731) 评论(0) 推荐(0)
摘要: 宏定义的使用与注意事项 ##是一个连接符号,用于把参数连在一起 #是“字符串化”的意思。出现在宏定义中的#是把跟在后面的参数转换成一个字符串#define paster( n ) printf( "token " #n" = %d\n ", token##n ) 所以paster(9);就是相当于 阅读全文
posted @ 2016-07-29 11:09 PKICA 阅读(2865) 评论(2) 推荐(1)
摘要: classA{ public: f(int); }; 这里f函数其实有两个参数,第一个是A*const this, 另一个才是int类型的参数 如果我们不想f函数改变参数的值,可以把函数原型改为f(constint),但如果我们不允许f改变this指向的对象呢?因为this是隐含参数,const没法 阅读全文
posted @ 2016-07-27 22:10 PKICA 阅读(257) 评论(0) 推荐(0)
摘要: sort()函数是C++中的排序函数其头文件为:#include<algorithm>头文件; qsort()是C中的排序函数,其头文件为:#include<stdlib.h> 1、qsort() 六类qsort排序方法 qsort函数很好用,但有时不太会用比如按结构体一级排序、二级排序、字符串排序 阅读全文
posted @ 2016-07-27 21:42 PKICA 阅读(592) 评论(0) 推荐(0)
摘要: #ifndef RC4_H #define RC4_H #define KEYLEN256 256 class rc4 { public: rc4(); ~rc4(); void swap(unsigned char *a, unsigned char *b); //initial state in 阅读全文
posted @ 2016-07-17 19:16 PKICA 阅读(358) 评论(0) 推荐(0)
摘要: //heads.h #ifndef HEAD_H #define HEAD_H #include <iostream> #include <sys/shm.h> //share momery #include <unistd.h> #include <stdio.h> #include <strin 阅读全文
posted @ 2016-07-14 21:34 PKICA 阅读(629) 评论(0) 推荐(0)
上一页 1 ··· 42 43 44 45 46 47 48 49 50 ··· 58 下一页