gpt4 book ai didi

c++ - VC++ 中的 getopt()

转载 作者:可可西里 更新时间:2023-11-01 12:39:02 24 4
gpt4 key购买 nike

我非常喜欢使用 GNU getopt , 在 Linux 下编程时。我知道 getopt() 在 MS VC++ 下不可用。

注意:

  • Win32 环境
  • 使用 Visual Studio
  • 没有Boost
  • 没有 MFC
  • 不关心便携性

问题:

  • 我怎样才能相应地移植 getopt()?
    • 移植时我应该注意哪些准则?
  • 具有相同特征的已知端口?

最佳答案

这可能有帮助,它也很容易集成

http://www.codeproject.com/KB/cpp/xgetopt.aspx

关于c++ - VC++ 中的 getopt(),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/543570/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com