#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输入参数
最新推荐文章于 2023-02-19 22:45:56 发布