关于loadrunner弹出错误not writing pre_cci.ci
上一篇 /
下一篇 2012-04-06 11:36:57
/ 个人分类:loadrunner11
关于loadrunner弹出错误not writing pre_cci.ci
主要原因都是由于编译不通过的错误导致。
例如:
float r = 4.5;
float s;
double r1 = 22.36;
double s1;
long double r2 = 876.99;
long double s2;
s = PI * r * r;
s1 = PI * r1 * r1;
s2 = PI * r2 * r2;
int total=0;
total = id *mount;
lr_output_message("mianjiis:%d",total);
lr_output_message("mainjiis:%f",s);
输出报错,想了半天最后终于找到原因,这个属于C的基本语法规则,必须把定义
放在前面,把算法放后面,不能交叉定义!
实际结果如下:
int total=0;
float r = 4.5;
float s;
double r1 = 22.36;
double s1;
long double r2 = 876.99;
long double s2;
total = id *mount;
s = PI * r * r;
s1 = PI * r1 * r1;
s2 = PI * r2 * r2;
lr_output_message("mianjiis:%d",total);
lr_output_message("mainjiis:%f",s);
收藏
举报
TAG: