qingcheng奕  

2013年7月2日

摘要: 下面资料来自百度百科:getopt(分析命令行参数)相关函数表头文件 #include定义函数 int getopt(int argc,char * const argv[ ],const char * optstring);extern char *optarg;extern int optind, opterr, optopt;函数说明 getopt()用来分析命令行参数。参数argc和argv是由main()传递的参数个数和内容。参数 optstring为选项字符串, 告知 getopt()可以处理哪个选项以及哪个选项需要参数,如果选项字符串里的字母后接着冒号“:”,则表示还有相关的参数 阅读全文
posted @ 2013-07-02 17:13 qingcheng奕 阅读(452) 评论(0) 推荐(0) 编辑