摘要: 1、定义: int getopt(int argc, char * const argv[], const char *optstring); 2、描述: getopt是用来解析命令行选项参数的,但是只能解析短选项: -d 100,不能解析长选项:--prefix 3、参数: argc:main() 阅读全文