如何解析C ++中的命令行参数? [英] How to Parse Command Line Arguments in C++?
本文介绍了如何解析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
推荐答案
这篇关于如何解析C ++中的命令行参数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文