如何解析C ++中的命令行参数?

问题描述:


可能重复:

如果程序被指定为
,那么在C ++中解析命令行参数的最好方法是:

What is the best way of parsing command-line arguments in C++ if the program is specified to be run like this:

prog [-abc] [input [output]]

STL中的库?

相关:

  • Parsing command line arguments in a unicode C++ application

Boost.Program_options 应该做的