getopt被用來解析命令列選項引數。就不用自己寫東東處理argv了。 #include. extern char *optarg; //選項的引數指標. extern int optind, //下一次 ...
確定! 回上一頁