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

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

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

        如何找到当前目录?

        时间:2023-10-06
        <legend id='HBIKT'><style id='HBIKT'><dir id='HBIKT'><q id='HBIKT'></q></dir></style></legend>

          <tfoot id='HBIKT'></tfoot>

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

                • <bdo id='HBIKT'></bdo><ul id='HBIKT'></ul>
                    <tbody id='HBIKT'></tbody>

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

                • 本文介绍了如何找到当前目录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我正在尝试读取我之前成功读取的文件.我正在通过图书馆阅读它,并将其按原样发送到图书馆(即myfile.txt").我知道该文件是从工作/当前目录中读取的.

                  I am trying to read a file which I read previously successfully. I am reading it through a library, and I am sending it as-is to the library (i.e. "myfile.txt"). I know that the file is read from the working/current directory.

                  我怀疑当前/工作目录以某种方式改变了.我如何检查当前/工作目录是什么?

                  I suspect that the current/working directory has changed somehow. How do i check what is the current/working directory?

                  推荐答案

                  既然你添加了 Visual-c++ 标签,我将建议使用标准的 windows 函数来做这件事.GetCurrentDirectory

                  Since you added the visual-c++ tag I'm going to suggest the standard windows function to do it. GetCurrentDirectory

                  用法:

                  TCHAR pwd[MAX_PATH];
                  GetCurrentDirectory(MAX_PATH,pwd);
                  MessageBox(NULL,pwd,pwd,0);
                  

                  这篇关于如何找到当前目录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:__attribute__((format(printf, 1, 2))) 用于 MSVC? 下一篇:如何强制 C++ 编译器使用特定的 CRT 版本?

                  相关文章

                  最新文章

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

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

                      <small id='sTXiJ'></small><noframes id='sTXiJ'>

                      <tfoot id='sTXiJ'></tfoot>
                      <legend id='sTXiJ'><style id='sTXiJ'><dir id='sTXiJ'><q id='sTXiJ'></q></dir></style></legend>