你看看这个英文的关于main( int argc, char *argv[ ], char *envp[ ] )里边参数的介绍:
argc
An integer specifying how many arguments are passed to the program from the command line. Because the program name is considered an argument, argc is at least 1.
译为:
argc 一个整数用来指定多少参数被传递给程序的命令行。因为程序的名字被当作是一个参数,所以argc是至少1。
argv
An array of null-terminated strings. It can be declared as an array of pointers to char or as a pointer to pointers to char.The first string (argv[0]) is the program name, and each following string is an argument passed to the program from the command line. The last pointer (argv[argc]) is NULL.
译为:以null结尾的字符串的数组。它可以被声明为一个数组的指针作为一个指针字符或字符指针。第一个字符串(argv[0])是程序的名字,和每个以下字符串是一个参数传递给程序的命令行。最后的指针(argv[i])是NULL。
追问谢谢