|
我也遇到了类似的问题,用了上述方法,有语法错误,不知道为什么,在action中:
int sum;
sum=100;
char number[10];
char mystr[1024];
char *strval = "Value=";
itoa(sum,number,10);
strcat(strcat(mystr,strval),number);
web_submit_form("comment",
"Snapshot=t4.inf",
ITEMDATA,
"Name=name", "Value=小冯", ENDITEM,
"Name=answer",mystr, ENDITEM,
EXTRARES,
.....
LAST);
检查代码有错误:
Action.c (69): illegal statement termination
Action.c (69): skipping `char'
Action.c (69): undeclared identifier `number'
Action.c (69): type error: pointer expected
....... |
|