- 博客(5)
- 资源 (21)
- 收藏
- 关注
原创 static 在C/C++中用法
static大概用法 1. 在函数中定义局部变量:在变量被存储在静态存储去,下次调用该函数时变量值保持不变 2. 定义函数和全局变量:作用域仅在该文件中,防止和其他文件中同名函数/变量产生冲突 In C++ 3. 类成员变量:类共享数据成员,无论创建多少个类的对象,该变量在程序中只有一份,而且是全局性的。注意:必须在类定义体的外部定义(正好一次),通常和类成员函数
2008-07-23 15:01:00 710
原创 二分查找算法的C/C++实现
自己随便写的,如果大家有更优化的算法,希望留下评论或链接,非常感谢~~~ int half_search(int num, int arr[], int len){ int start = 0, end = len-1; int index = 0; while(start index = start + (end-start)/2; //不用 (end+start)/2 是为了防
2008-07-21 16:57:00 2234
原创 VS2005无法进行DEBUG:Binary was not build with debug information.
Its not an installation issue, the problem is, as the error message suggests, that you have not built your project with debug information.To do this:1) Goto Project->Properties2) Make sure "Configura
2008-07-18 16:25:00 3907 1
原创 BREW 实现字符串MD5编码
BREW 普通MD5字符串编码实现,使用BREW的IHASH API.输入要编码的字符串,可在输出窗口看到编码后的32位字符串。void verify_md5(byte *input){ IHash* po = NULL; byte pResult[16]; int i = 0, ret = 0; int len = 16; char tmpst
2008-07-11 17:00:00 1324
原创 sprintf详解
sprintf详解 转摘声明:选自《CSDN 社区电子杂志——C/C++杂志》在将各种类型的数据构造成字符串时,sprintf 的强大功能很少会让你失望。由于sprintf 跟printf 在用法上几乎一样,只是打印的目的地不同而已,前者打印到字符串中,后者则直接在命令行上输出。这也导致sprintf 比printf 有用得多。sprintf 是个变参函数,定义如下:int
2008-07-10 17:28:00 818
Iphone开发基础教程-中文高清版.part7.rar
2011-02-21
Iphone开发基础教程-中文高清版.part6.rar
2011-02-21
Iphone开发基础教程-中文高清版.part5.rar
2011-02-21
Iphone开发基础教程-中文高清版.part4.rar
2011-02-21
Iphone开发基础教程-中文高清版.part3.rar
2011-02-21
Iphone开发基础教程-中文高清版.part2.rar
2011-02-21
Iphone开发基础教程-中文高清版.part1.rar
2011-02-20
Iphone开发基础教程-高清中文版.zip.007
2011-02-20
Iphone开发基础教程-高清中文版.zip.006
2011-02-20
Iphone开发基础教程-高清中文版.zip.005
2011-02-20
Iphone开发基础教程-高清中文版.zip.004
2011-02-20
Iphone开发基础教程-高清中文版.zip.003
2011-02-20
Iphone开发基础教程-高清中文版.zip.002
2011-02-20
Iphone开发基础教程-高清中文版.zip.001
2011-02-20
UNIX操作系统入门.zip
2008-07-24
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人