2014年9月24日

getopt

摘要: int getopt(int argc, char * const argv[], const char *optstring);1.getopt() 用来解析命令行参数。程序启动时,argc,argv两个参数传递给运行程序,argv里的参数项以'-'(或'--')开始。循环调用getopt(),将... 阅读全文

posted @ 2014-09-24 17:25 偏爱省略号 阅读(535) 评论(0) 推荐(0) 编辑

导航