我們經常使用上面的命令來編譯程序,這裡g和o就是選項,其中test就是o的選項參數 下面我們來看一下getopt: 首先是函數聲明: #include extern char *optarg;
確定! 回上一頁