51Testing软件测试论坛
标题:
帮忙解决下那里有错误
[打印本页]
作者:
helonso
时间:
2012-5-18 13:25
标题:
帮忙解决下那里有错误
add()
{
char leon[512];
int leon1;
web_reg_save_param("leon","LB=","RB=",LAST);
lr_message("value:%s",lr_eval_string("{leon}"));
web_submit_data("addmember",
"Action=http://192.168.1.31/xx/add",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.1.31/xx/add.action",
"Snapshot=t13.inf",
"Mode=HTML",
ITEMDATA,
"Name=mbf.uid", "Value={uid}", ENDITEM,
"Name=mbf.uname", "Value={uname}", ENDITEM,
"Name=button", "Value=保存", ENDITEM,
EXTRARES,
"Url=/images/ui-bg.png", "Referer=http://192.168.1.31/xx/add.jsp", ENDITEM,
LAST);
leon1=(int)fopen("d://add.txt","at+");
fprintf(leon1, "姓名:%s,号码:%s/n ",lr_eval_string("{uname}"),lr_eval_string("{uid}"),lr_eval_string("{leon}"));
fclose();
return 0;
}
复制代码
提示这样的错误
add.c (27): illegal statement termination
add.c (27): skipping `char'
add.c (27): undeclared identifier `leon'
add.c (27): type error: pointer expected
add.c (28): illegal statement termination
add.c (28): skipping `int'
add.c (28): undeclared identifier `leon1'
能帮忙改改,就是把信息输出到
作者:
helonso
时间:
2012-5-18 14:21
求解
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2