|
Action()
{
int i;
int x;
int y;
i=atoi(lr_eval_string("{GroupCount}"));
lr_output_message("选取了第%d组范围中的数据",i);
switch(i)
{
case 1:
x=atoi(lr_eval_string("{xGroup1}"));
y=atoi(lr_eval_string("{yGroup1}"));
break;
case 2:
x=atoi(lr_eval_string("{xGroup2}"));
y=atoi(lr_eval_string("{yGroup2}"));
break;
case 3://全负数
x=atoi(lr_eval_string("{xGroup3}"));
y=atoi(lr_eval_string("{yGroup3}"));
break;
case 4://正负数x取-300~400,y取-500~200
x=(rand()%7000)/9-300;
y=(rand()%7000)/9-500;
}
lr_output_message("x is %d;y is %d",x,y);
return 0;
} |
|