The sample Loadrunner script below shows examples of FOR, DO and DO WHILE LOOPs.
来源:互联网 发布:linux系统版本查看 编辑:程序博客网 时间:2024/05/01 19:29
#include "as_web.h"
int i;
// Set whileloop = 1 for the while loop example to work
int whileloop = 1;
Action()
{
//Example of a loop using a FOR loop
for (i=1;i<=10;i++)
{
lr_output_message( "FOR Loop number %d", i);
}
//Equivalent example but using a WHILE loop
//This can be made more complicated by including other conditions e.g. &&
i=1;
while ((i <= 10) && (whileloop ==1))
{
lr_output_message( "WHILE Loop number %d", i);
i++;
}
//Equivalent example but using a WHILE loop
//This can also be made more complicated by including other conditions e.g. &&
i=1;
do {
lr_output_message( "DO WHILE Loop number %d", i);
i++;
}
while (i <= 10) ;
return 0;
}
- The sample Loadrunner script below shows examples of FOR, DO and DO WHILE LOOPs.
- do... while,while and for 循环
- Significance and use of do{...}while(0)
- do...while to for
- for while do while continue
- while、do while、for循环
- for while do while区别
- 循环:for、while、do-while
- while and do while; i++ and ++i
- (5)do while、for
- IF For Do while循环
- Why do a lot of #defines in the kernel use do { ... } while(0)?
- Why do a lot of #defines in the kernel use do { ... } while(0)?
- javascript Loop While || For || do While
- 循环控制 for while do while switch
- 循环语句小结 for while do-while
- while和do..while和for循环
- while循环、do..while 循环、for循环
- 开通了我的个人主页
- 【小阅读^大脑袋】0308 NO.335
- 2010 最牛B的个性签名
- ASPNETDB 数据库关系图、表和视图 基本表和独立表(转载)
- C# 怎样让DataGridView不显示最下面那个空行
- The sample Loadrunner script below shows examples of FOR, DO and DO WHILE LOOPs.
- 控制页面按钮的样式
- 网络日志(2010.5.17)
- 2010.5.17 故障安全
- 新款PSP线路板复制解剖
- 通用数据转移程序
- jsp自定义标签库打包步骤
- extjs 表单验证实例
- 我是如何一次性通过“信息系统项目管理师”认证的