- MercadoLivre-Functions This module allows you to register ecommerce site mercadolivre users to make a community that helps them and shows their comments indexed from mercadolivre.
- Ecommerce_1236268282002 ecommerce site
- TotalCommander 实现与软件total commamder相类似的效果
- test13 (1) 编写程序
- s3esk_picoblaze_dac_control picoblaze DAC control spartan 3e
- xiahuaxiandaohang 下划线二级企业网站导航菜单是一款基于jQuery制作的鼠标滑动到菜单栏显示一级菜单文字下面显示下滑线同时显示下拉二级菜单项目的代码
文件名称:inline
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:4.29kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
inlineinline 一、inline 关键字用来定义一个类的内联函数,引入它的主要原因是用它替代C中表达式形式的宏定义。
表达式形式的宏定义一例:
#define ExpressionName(Var1,Var2) ((Var1)+(Var2))*((Var1)-(Var2))
为什么要取代这种形式呢,且听我道来:
1. 首先谈一下在C中使用这种形式宏定义的原因,C语言是一个效率很高的语言,这种宏定义在形式及使用上像一个函数,但它使用预处理器实现,没有了参数压栈,代码生成 等一系列的操作,因此,效率很高,这是它在C中被使用的一个主要原因。
-inlineinline 1, inline keyword is used to define a class inline functions, the introduction of the main reasons it is used instead of C macro definitions in the form of expression. Expression forms one example macro definition:# define ExpressionName (Var1, Var2) ((Var1)+ (Var2 ))*(( Var1)- (Var2)) Why is this form to replace it, Let me show Road to: 1 . Let me first explain the use of this form in the C macro definition because, C language is a very efficient language, this macro is defined in the form and use as a function, but it uses the pre-processor, without the pressure parameters stack, code generation and a series of operations, therefore, very efficient, which it is used in C, a major cause.
表达式形式的宏定义一例:
#define ExpressionName(Var1,Var2) ((Var1)+(Var2))*((Var1)-(Var2))
为什么要取代这种形式呢,且听我道来:
1. 首先谈一下在C中使用这种形式宏定义的原因,C语言是一个效率很高的语言,这种宏定义在形式及使用上像一个函数,但它使用预处理器实现,没有了参数压栈,代码生成 等一系列的操作,因此,效率很高,这是它在C中被使用的一个主要原因。
-inlineinline 1, inline keyword is used to define a class inline functions, the introduction of the main reasons it is used instead of C macro definitions in the form of expression. Expression forms one example macro definition:# define ExpressionName (Var1, Var2) ((Var1)+ (Var2 ))*(( Var1)- (Var2)) Why is this form to replace it, Let me show Road to: 1 . Let me first explain the use of this form in the C macro definition because, C language is a very efficient language, this macro is defined in the form and use as a function, but it uses the pre-processor, without the pressure parameters stack, code generation and a series of operations, therefore, very efficient, which it is used in C, a major cause.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
inline.doc
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.