#include <stdio.h>
int main(int argc,char* argv[]){
printf("%d\n",argc);
for(int i=0;i< argc;i++){
printf("%s\n",argv[i]);
}
return 0;
}
C语言执行传参
279 views
#include <stdio.h>
int main(int argc,char* argv[]){
printf("%d\n",argc);
for(int i=0;i< argc;i++){
printf("%s\n",argv[i]);
}
return 0;
}