#include <stdio.h>
int main(int argc
,char* argv
[])
{
printf("%d\n",argc
);
while(argc
)
printf("%s\n",argv
[--argc
]);
return 0;
}
argc为参数数量,argv为参数内容 例如运行该函数
test.exe test hello
则输出结果为
3 hello test test.exe
转载请注明原文地址:https://ipadbbs.8miu.com/read-50712.html