51Testing软件测试论坛

标题: 帮忙解决下那里有错误 [打印本页]

作者: helonso    时间: 2012-5-18 13:25
标题: 帮忙解决下那里有错误
  1. add()
  2. {

  3.         char leon[512];
  4.         int leon1;

  5.         web_reg_save_param("leon","LB=","RB=",LAST);
  6.         lr_message("value:%s",lr_eval_string("{leon}"));   

  7.         web_submit_data("addmember",
  8.                 "Action=http://192.168.1.31/xx/add",
  9.                 "Method=POST",
  10.                 "RecContentType=text/html",
  11.                 "Referer=http://192.168.1.31/xx/add.action",
  12.                 "Snapshot=t13.inf",
  13.                 "Mode=HTML",
  14.                 ITEMDATA,
  15.                 "Name=mbf.uid", "Value={uid}", ENDITEM,
  16.                 "Name=mbf.uname", "Value={uname}", ENDITEM,
  17.                 "Name=button", "Value=保存", ENDITEM,
  18.                 EXTRARES,
  19.                 "Url=/images/ui-bg.png", "Referer=http://192.168.1.31/xx/add.jsp", ENDITEM,
  20.                 LAST);
  21.         leon1=(int)fopen("d://add.txt","at+");
  22.         fprintf(leon1, "姓名:%s,号码:%s/n ",lr_eval_string("{uname}"),lr_eval_string("{uid}"),lr_eval_string("{leon}"));
  23.         fclose();
  24.         return 0;
  25. }
复制代码
提示这样的错误
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