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

    <bdo id='X0BrX'></bdo><ul id='X0BrX'></ul>
<legend id='X0BrX'><style id='X0BrX'><dir id='X0BrX'><q id='X0BrX'></q></dir></style></legend>

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

      1. Netbeans IDE for C++ 如何指定命令行参数

        Netbeans IDE for C++ how to specify command line arguments(Netbeans IDE for C++ 如何指定命令行参数)

          <tbody id='GtY58'></tbody>
        1. <legend id='GtY58'><style id='GtY58'><dir id='GtY58'><q id='GtY58'></q></dir></style></legend>

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

                  <bdo id='GtY58'></bdo><ul id='GtY58'></ul>
                  <tfoot id='GtY58'></tfoot>
                  本文介绍了Netbeans IDE for C++ 如何指定命令行参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  如何为 netbeans C++ 项目指定命令行参数?

                  How do I specify command line arguments for a netbeans C++ project?

                  调试选项卡上似乎没有合适的位置.

                  There does not seem to be a suitable place on debug tab.

                  推荐答案

                  要在 netbeans 中为 C++ 项目指定命令行参数,请转到:

                  To specify command line arguments for a C++ project in netbeans go to:

                  项目属性 => Run => Run 命令

                  默认为:

                  "${OUTPUT_PATH}"

                  将其更改为:

                  "${OUTPUT_PATH}" 嗨 5

                  使用以下代码创建 main.cpp:

                  The create main.cpp with this code:

                  int main(int argc, char** argv) {
                  
                      cout << "First argument: " << argv[1] << endl;
                      cout << "Second argument: " << argv[2] << endl;
                      return 0;
                  }
                  

                  产生输出:

                  First argument: hi
                  Second argument: 5
                  
                  RUN SUCCESSFUL (total time: 320ms)
                  

                  这篇关于Netbeans IDE for C++ 如何指定命令行参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  Unable to access non-const member functions of objects in C++ std::set(无法访问 C++ std::set 中对象的非常量成员函数)
                  Constructing std::function argument from lambda(从 lambda 构造 std::function 参数)
                  STL BigInt class implementation(STL BigInt 类实现)
                  Sync is unreliable using std::atomic and std::condition_variable(使用 std::atomic 和 std::condition_variable 同步不可靠)
                  Move list element to the end in STL(在 STL 中将列表元素移动到末尾)
                  Why is overloading operatoramp;() prohibited for classes stored in STL containers?(为什么禁止对存储在 STL 容器中的类重载 operatoramp;()?)
                • <i id='ISs3T'><tr id='ISs3T'><dt id='ISs3T'><q id='ISs3T'><span id='ISs3T'><b id='ISs3T'><form id='ISs3T'><ins id='ISs3T'></ins><ul id='ISs3T'></ul><sub id='ISs3T'></sub></form><legend id='ISs3T'></legend><bdo id='ISs3T'><pre id='ISs3T'><center id='ISs3T'></center></pre></bdo></b><th id='ISs3T'></th></span></q></dt></tr></i><div id='ISs3T'><tfoot id='ISs3T'></tfoot><dl id='ISs3T'><fieldset id='ISs3T'></fieldset></dl></div>
                    <legend id='ISs3T'><style id='ISs3T'><dir id='ISs3T'><q id='ISs3T'></q></dir></style></legend>
                      <tbody id='ISs3T'></tbody>

                    <tfoot id='ISs3T'></tfoot>
                        • <small id='ISs3T'></small><noframes id='ISs3T'>

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