摘要: C语言之getopt函数 作用 getopt()用来分析命令行参数。参数argc和argv分别代表参数个数和内容,跟main()函数的命令行参数是一样的。 //头文件 #include <unistd.h> //函数原型 int getopt(int argc, char * const argv[ 阅读全文
posted @ 2022-05-21 22:50 慕斯p 阅读(223) 评论(0) 推荐(0)