码迷,mamicode.com
首页 > 其他好文 > 详细

lr--atoi、itoa

时间:2015-03-02 16:23:58      阅读:281      评论:0      收藏:0      [点我收藏+]

标签:

Action()
{
int pageSum;
char randpage[4];
web_reg_save_param("page",
"LB=href=\"?c=browse&keyword=&cg=&marker=B&page=",
"RB=\">鏈€鍚庨〉</a></span> ",
LAST);
web_url("e6mall",
"URL=http://192.168.1.101:40001/e6mall/?c=browse",
LAST);
pageSum=atoi(lr_eval_string("{page}"));
//lr_output_message("%d",pageSum);
//lr_output_message("randpage %d",rand()%pageSum+1);
itoa(rand()%pageSum+1,randpage,10);
lr_save_string(randpage,"rpage");


web_url("e6mall",
"URL=http://192.168.1.101:40001/e6mall/?c=browse&keyword=&cg=&marker=B&page={rpage}",
LAST);

return 0;
}

lr--atoi、itoa

标签:

原文地址:http://www.cnblogs.com/stay-sober/p/4308743.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!