getopt 被用来解析命令行选项参数。就不用自己写东东处理argv了。 #include <unistd.h> extern char *optarg; //选项的参数指针 extern int optind ...
確定! 回上一頁