- 博客(5)
- 资源 (10)
- 收藏
- 关注
翻译 参数声明中的静态数组索引:一个不错且鲜为人知的C语言特性
C语言的创造者们一定都热衷于让关键字的数目尽可能的少.今天将向你展示另一个可使用C99中static关键字地方.也许你已经看到过在数组的参数声明中包括数组的长度:void foo(int myArray[10]);这样的函数仍可接收整数指针int *,但是长度[10]可以对阅读代码的人们可当作文档,传达着这相函数预期一个长度为10个整数的数组的信息.
2013-02-21 23:04:18 3757
原创 常见面试题之C++
1. struct与C语言中的struct有何区别在C语言中, struct仅用于定义复杂数据结构,也主是说它只能定义数据,它的成员只能是数据类型,不能直接定义方法函数。在C++中,struct除了C中的用途外,还可以像class一样,可以定义成员方法函数。2. struct与class的区别共同点:它们都可以定义面向对象中的类:定义成员数据和成员方法函数。区别
2013-02-15 12:15:26 2837
原创 C语言中编译相关的常见错误
1. /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/crt1.o: In function `_start':(.text+0x18): undefined reference to `main'collect2: ld 返回 1Reason: no main function in source file2.
2013-02-14 09:56:48 7391 1
原创 如何玩转ELF(*.so)
Shared library can be confusing and erroneous. It is very vulnerable to get "undefined symbols" error. There are some good tools can be used to analyze the so file and help us to locate the error.A.
2013-02-13 12:12:01 4646
原创 Android开发:实践TDD的一些建议
最近部分采用了TDD的方法来开发一个模块,小有收获特此总结一下:1. TDD的基本原则TDD的最核心思想就是先明确需求,且用代码的方式量化,明确需求标准,然后进行编码实现以达成由代码测试来衡量的标准。那么它要求,先把需要标准写出来,每次只写一个。编码实现通过达到,并刚好满足这个标准。这样一点一点的迭代。这样有三个好处:一个是先明确标准,不至于我们迷失主题,偏离方向。有标准在检测,保
2013-02-12 16:25:40 4207
The Artist’s Guide to GIMP, 2nd Edition
2012-10-20
Android本地代码生成器
2011-10-19
Android本地代码生成器
2011-10-19
Learning Vi and Vim editor
2009-05-29
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人