<bdo id='ggrGe'></bdo><ul id='ggrGe'></ul>

  • <legend id='ggrGe'><style id='ggrGe'><dir id='ggrGe'><q id='ggrGe'></q></dir></style></legend>
  • <small id='ggrGe'></small><noframes id='ggrGe'>

    1. <i id='ggrGe'><tr id='ggrGe'><dt id='ggrGe'><q id='ggrGe'><span id='ggrGe'><b id='ggrGe'><form id='ggrGe'><ins id='ggrGe'></ins><ul id='ggrGe'></ul><sub id='ggrGe'></sub></form><legend id='ggrGe'></legend><bdo id='ggrGe'><pre id='ggrGe'><center id='ggrGe'></center></pre></bdo></b><th id='ggrGe'></th></span></q></dt></tr></i><div id='ggrGe'><tfoot id='ggrGe'></tfoot><dl id='ggrGe'><fieldset id='ggrGe'></fieldset></dl></div>

    2. <tfoot id='ggrGe'></tfoot>

      1. mkdir c++ 函数

        mkdir c++ function(mkdir c++ 函数)

        <tfoot id='UJXsy'></tfoot>

          • <small id='UJXsy'></small><noframes id='UJXsy'>

              • <bdo id='UJXsy'></bdo><ul id='UJXsy'></ul>

              • <i id='UJXsy'><tr id='UJXsy'><dt id='UJXsy'><q id='UJXsy'><span id='UJXsy'><b id='UJXsy'><form id='UJXsy'><ins id='UJXsy'></ins><ul id='UJXsy'></ul><sub id='UJXsy'></sub></form><legend id='UJXsy'></legend><bdo id='UJXsy'><pre id='UJXsy'><center id='UJXsy'></center></pre></bdo></b><th id='UJXsy'></th></span></q></dt></tr></i><div id='UJXsy'><tfoot id='UJXsy'></tfoot><dl id='UJXsy'><fieldset id='UJXsy'></fieldset></dl></div>
                  <tbody id='UJXsy'></tbody>
                  <legend id='UJXsy'><style id='UJXsy'><dir id='UJXsy'><q id='UJXsy'></q></dir></style></legend>
                1. 本文介绍了mkdir c++ 函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我需要在 VS 2008 中使用 mkdir c++ 函数,它接受两个参数,并且在 VS 2005 中已被弃用.

                  I need to use the mkdir c++ function in VS 2008 which takes two arguments and is deprecated from VS 2005.

                  但是我们的代码中使用了这个函数,我需要编写一个独立的产品(仅包含 mkdir 函数)来调试某些东西.

                  However this function is used in our code and I need to write a standalone product (containing only mkdir function) to debug something.

                  我需要导入哪些头文件?我使用了 direct.h,但是编译器抱怨该参数没有 2 个参数(原因是该函数在 VS 2005 中已被弃用).

                  What header files do I need to import? I used direct.h, however compiler complains that the argument does not take 2 arguments (reason for this is the function was deprecated in VS 2005).

                  mkdir("C:hello",0);
                  

                  推荐答案

                  如果你想写跨平台的代码,可以使用 boost::filesystem 例程

                  If you want to write cross-platform code, you can use boost::filesystem routines

                  #include <boost/filesystem.hpp>
                  boost::filesystem::create_directory("dirname");
                  

                  这确实添加了一个库依赖项,但您可能还会使用其他文件系统例程,并且 boost::filesystem 有一些很棒的接口.

                  This does add a library dependency but chances are you are going to use other filesystem routines as well and boost::filesystem has some great interfaces for that.

                  如果您只需要创建一个新目录,并且只打算使用 VS 2008,则可以使用 _mkdir(),正如其他人所指出的那样.

                  If you only need to make a new directory and if you are only going to use VS 2008, you can use _mkdir() as others have noted.

                  这篇关于mkdir c++ 函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  C++ stl unordered_map implementation, reference validity(C++ stl unordered_map 实现,参考有效性)
                  C++: Is it possible to use a reference as the value in a map?(C++:是否可以使用引用作为映射中的值?)
                  Where ampersand quot;amp;quot; can be put when passing argument by reference?(其中符号“amp;通过引用传递参数时可以放置吗?)
                  Why can a non-const reference parameter be bound to a temporary object?(为什么可以将非常量引用参数绑定到临时对象?)
                  What is a dangling reference?(什么是悬空引用?)
                  C++ reference changes when push_back new element to std::vector(当 push_back 新元素到 std::vector 时,C++ 引用发生变化)
                    <tbody id='BKfjE'></tbody>
                  • <small id='BKfjE'></small><noframes id='BKfjE'>

                    • <tfoot id='BKfjE'></tfoot>
                        <bdo id='BKfjE'></bdo><ul id='BKfjE'></ul>

                          <i id='BKfjE'><tr id='BKfjE'><dt id='BKfjE'><q id='BKfjE'><span id='BKfjE'><b id='BKfjE'><form id='BKfjE'><ins id='BKfjE'></ins><ul id='BKfjE'></ul><sub id='BKfjE'></sub></form><legend id='BKfjE'></legend><bdo id='BKfjE'><pre id='BKfjE'><center id='BKfjE'></center></pre></bdo></b><th id='BKfjE'></th></span></q></dt></tr></i><div id='BKfjE'><tfoot id='BKfjE'></tfoot><dl id='BKfjE'><fieldset id='BKfjE'></fieldset></dl></div>

                            <legend id='BKfjE'><style id='BKfjE'><dir id='BKfjE'><q id='BKfjE'></q></dir></style></legend>