文件数
源文件的数量
描述
此度量计算您的工程中的源文件的数量。
示例
#include<iostream>
#include"pow.cpp"
double power(double, double);
//Function to calculate approximate index
double AppxIndex(double m, double f){
double U = (power(m,2) - 1)/(power(m,2)+2); //First term
double V = (power(m,4) + 27*power(m,2)+38)/
(2*power(m,2)+3);// Second term
return (1+2*f*power(U,2)*(1+power(m,2)*U*V +
power(m,3)/power(m,3)*(U-V)))
/( (1-2*f*power(U,2)*(1+power(m,2)*U*V
+ power(m,3)/power(m,3)*(U-V))));
}
int main(){
return 0;
}
在此示例中,代码调用函数 power,该函数是在包含的源文件 pow.cpp 中定义的。在分析代码时,Polyspace® 不会考虑所包含的源文件。由于分析中不会考虑该包含的源文件,因此 Polyspace 将源文件的数量计算为 1。
度量信息
| 组:工程 |
缩写:FILES |
| HIS 度量:否 |
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- América Latina (Español)
- Canada (English)
- United States (English)
欧洲
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)