C++ Boost 程序选项示例
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1257640/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Boost Program Options Examples
提问by rayimag
In the boost tutorials online for program options : http://www.boost.org/doc/libs/1_39_0/doc/html/program_options/tutorial.html#id2891824
在程序选项的在线提升教程中:http: //www.boost.org/doc/libs/1_39_0/doc/html/program_options/tutorial.html#id2891824
It says that the complete code examples can be found at "BOOST_ROOT/libs/program_options/example" directory. I could not figure out where is this. Can anyone help me finding the examples?
它说完整的代码示例可以在“BOOST_ROOT/libs/program_options/example”目录中找到。我想不通这是哪里。谁能帮我找到例子?
采纳答案by ypnos
On Debian systems, you find it in /usr/share/doc/libboost-doc/examples/libs/program_options
.
Otherwise, I suggest to download the archive from boost.org and have a look there.
在 Debian 系统上,您可以在/usr/share/doc/libboost-doc/examples/libs/program_options
. 否则,我建议从 boost.org 下载存档并在那里查看。
回答by kaveish
The examples are online at https://www.boost.org/doc/libs/1_73_0/libs/program_options/example/
示例在线 https://www.boost.org/doc/libs/1_73_0/libs/program_options/example/
For a different version of boost, change the number in the link.
对于不同版本的 boost,请更改链接中的数字。