StupidBeauty
Read times:1404Posted at:Thu Jun 7 16:46:05 2012
- no title specified

转载:内联函数详解

内联函数应当写在头文件中,然后被每个使用这个内联函数的文件包含。因为内联是在编译时进行的,编译器需要知道函数的细节。

http://c.chinaitlab.com/cc/basic/200906/787402_2.html

亮点:

由于大多数构建环境都是在编译过程中进行内联,因此内联函数一般情况下都应该定义在头文件中。编译器必须首先了解函数的大致情况,以便于用所调用函数体来代替这次函数调用。

Your opinions
Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands