帮忙解决下那里有错误
add(){
char leon;
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'
能帮忙改改,就是把信息输出到 求解
页:
[1]