对于C / C选项解析器++? [英] Option Parsers for C/C++?

查看:147
本文介绍了对于C / C选项解析器++?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:结果
  <一href=\"http://stackoverflow.com/questions/253556/what-parameter-parser-libraries-are-there-for-c\">What参数解析器库在那里为C ++?

我已经做了一些前瞻性和有一大堆的命令行选项解析库,但是很难区分它们。有没有人有任何人的经验吗?一个更难/更好/更快/更容易/不管比任何其他人?或者我应该只是长大我自己的?

I've done some looking and there are a whole lot of libraries for command line option parsing, but it is difficult to differentiate between them. Does anyone have any experience with any of them? Is one harder/better/faster/easier/whatever than any of the others? Or should I just grow my own?

推荐答案

如果你想要的东西完全跨平台,我已经找到了<一个href=\"http://www.boost.org/doc/libs/1%5F37%5F0/doc/html/program%5Foptions.html\">Boost::Program_Options图书馆是非常好的。有一个学习曲线的东西设置它,但一旦你掌握的是,它大大简化了的东西。

If you want something completely cross-platform, I've found the Boost::Program_Options library to be very good. There's something of a learning curve to setting it up, but once you master that, it simplifies things greatly.

这篇关于对于C / C选项解析器++?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆