#include <stdio.h>
#include <stdlib.h>
#include <queue>
#include<iostream>
using namespace std;
int main(int argc,char* argv[])
{
//argv 输入参数数组
//argc是参数个数,默认是1,即argv[0],存的是程序的路径
printf("%d\n%s\n",argc,argv[0]);
char command[]="dir";
system(command);
system("pause");
return 0;
}
main输入参数
最新推荐文章于 2025-03-25 16:54:27 发布
2238

被折叠的 条评论
为什么被折叠?



