TA的每日心情 | 奋斗 2016-4-11 15:57 |
---|
签到天数: 6 天 连续签到: 1 天 [LV.2]测试排长
|
我的代码是这样:
Action()
{
int randnum;
randnum = rand()%3+1;
lr_output_message("The random number is %d",randnum);
if(randnum == 1){
lr_output_message("访问百度");
web_url("www.baidu.com",
"URL=http://www.baidu.com/",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
}
else if(randnum == 2){
lr_output_message ("访问搜狗");
web_url("www.sogou.com",
"URL=http://www.sogou.com/",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t12.inf",
"Mode=HTML",
LAST);
}
else if (randnum == 3) {
lr_output_message ("访问hao123");
web_url("hao123.com",
"URL=http://hao123.com/",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t14.inf",
"Mode=HTML",
LAST);
}
else{
lr_output_message("访问百度");
web_url("www.baidu.com",
"URL=http://www.baidu.com/",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
}
return 0;
}
执行时却报错 undeclared identifier `LAST',求指点,是不是缺少了什么 |
|