c语言解析命令行参数的简单例子

假设要解析的命令行参数以下:web getopts.exe [--port 9000] --freq 1 --size 5 --file filename #include <stdio.h> int getOpts(int argc, char **argv); int main(int argc, char* argv[]) { if(1!=getOpts( argc, argv))
相关文章
相关标签/搜索