哪里出错了啊???
#include <stdio.h>
int main(int argc,char* argv[])
{
printf("argc is %d\n",argc);
int i;
if(i=0;i<argc;i++){
printf("argv[%d] is %s",i,argv[i]);
}
return 0;
}
main3.c:7:11: error expected ')' before ';' token
#include <stdio.h>
int main(int argc,char* argv[])
{
printf("argc is %d\n",argc);
int i;
if(i=0;i<argc;i++){
printf("argv[%d] is %s",i,argv[i]);
}
return 0;
}
main3.c:7:11: error expected ')' before ';' token
2016-08-16
举报